15#ifndef SHADER_H_6014714286
16#define SHADER_H_6014714286
81 Shader(
unsigned int type,
const std::string&
src );
91 const unsigned int id;
Contains forward-declarations.
Represents an association.
Maintains an OpenGL shader object. Realizes the RAII-idiom.
static const unsigned int TYPE_GEOMETRY_SHADER
Indicates shader object of GL_GEOMETRY_SHADER type.
const unsigned int type
Holds the type of the maintained OpenGL shader object. This is TYPE_VERTEX_SHADER,...
~Shader()
Deletes the maintained OpenGL shader object.
static const unsigned int TYPE_VERTEX_SHADER
Indicates shader object of GL_VERTEX_SHADER type.
static const unsigned int TYPE_FRAGMENT_SHADER
Indicates shader object of GL_FRAGMENT_SHADER type.
const unsigned int id
Identifies the maintained OpenGL shader object.
Shader(unsigned int type, const std::string &src)
Compiles src and creates new OpenGL shader object of type.
Defines LibCarna::base::noncopyable and NON_COPYABLE.
#define NON_COPYABLE
Marks the class that it is placed in as non-copyable.