|
|
|
@ -100,6 +100,8 @@ class MAGNUM_EXPORT AbstractShaderProgram { |
|
|
|
* |
|
|
|
* |
|
|
|
* See AbstractShaderProgram documentation or Mesh::bindAttribute() |
|
|
|
* See AbstractShaderProgram documentation or Mesh::bindAttribute() |
|
|
|
* for an example. |
|
|
|
* for an example. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @todo Support for BGRA attribute type (OpenGL 3.2, ARB_vertex_array_bgra) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
template<size_t i, class T> struct Attribute { |
|
|
|
template<size_t i, class T> struct Attribute { |
|
|
|
static const size_t Location = i; /**< Location to which the attribute is bound */ |
|
|
|
static const size_t Location = i; /**< Location to which the attribute is bound */ |
|
|
|
@ -186,6 +188,8 @@ class MAGNUM_EXPORT AbstractShaderProgram { |
|
|
|
glUniform1i(location, value); |
|
|
|
glUniform1i(location, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @todo setUniform() for arbitrary vectors (size and also type) */ |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @copydoc setUniform(GLint, GLint) |
|
|
|
* @copydoc setUniform(GLint, GLint) |
|
|
|
* |
|
|
|
* |
|
|
|
|