12#ifndef SHADER_H_6014714286
13#define SHADER_H_6014714286
23#include <Carna/Carna.h>
81 Shader(
unsigned int type,
const std::string&
src );
91 const unsigned int id;
Represents an association.
Maintains an OpenGL shader object. Realizes the RAII-idiom.
~Shader()
Deletes the maintained OpenGL shader object.
static const unsigned int TYPE_VERTEX_SHADER
Indicates shader object of GL_VERTEX_SHADER type.
Shader(unsigned int type, const std::string &src)
Compiles src and creates new OpenGL shader object of type.
const unsigned int type
Holds the type of the maintained OpenGL shader object. This is TYPE_VERTEX_SHADER,...
static const unsigned int TYPE_GEOMETRY_SHADER
Indicates shader object of GL_GEOMETRY_SHADER type.
const unsigned int id
Identifies the maintained OpenGL shader object.
static const unsigned int TYPE_FRAGMENT_SHADER
Indicates shader object of GL_FRAGMENT_SHADER type.
#define NON_COPYABLE
Features class it is placed in as non-copyable.