#include <GlslProg.h>
const std::string& cinder::gl::GlslProg::Uniform::getName |
( |
| ) |
const |
Returns a const reference of the name as defined inside the Glsl.
GLint cinder::gl::GlslProg::Uniform::getCount |
( |
| ) |
const |
Returns the number of uniforms expected by the Glsl. mCount will be 1 unless this uniform is an array.
GLint cinder::gl::GlslProg::Uniform::getLocation |
( |
| ) |
const |
Returns the Glsl generated location of this uniform. If this uniform is located in a UniformBlock, it's Location will be -1.
GLint cinder::gl::GlslProg::Uniform::getIndex |
( |
| ) |
const |
Returns the Index generated by the Glsl for this uniform. Useful for Querying Glsl about this active uniform
GLenum cinder::gl::GlslProg::Uniform::getType |
( |
| ) |
const |
Returns the GLenum representation of the type of this uniform (for example, GL_FLOAT_VEC3
)
UniformSemantic cinder::gl::GlslProg::Uniform::getUniformSemantic |
( |
| ) |
const |
Returns the defined UniformSemantic.
The documentation for this struct was generated from the following file: