Cinder  0.9.1
Public Member Functions | Friends | List of all members
cinder::gl::GlslProg::Uniform Struct Reference

#include <GlslProg.h>

Public Member Functions

const std::string & getName () const
 
GLint getCount () const
 
GLint getLocation () const
 
GLint getIndex () const
 
GLenum getType () const
 
UniformSemantic getUniformSemantic () const
 

Friends

class GlslProg
 

Member Function Documentation

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.

Friends And Related Function Documentation

friend class GlslProg
friend

The documentation for this struct was generated from the following file: