|
| Setup (ConstShaderPtr shader) |
|
const Shader * | shader () const |
|
void | addUniformParameter (const std::string &name, ConstTexturePtr value) |
|
void | addUniformParameter (const std::string &name, IECore::ConstDataPtr value) |
|
void | addVertexAttribute (const std::string &name, IECore::ConstDataPtr value, GLuint divisor=0) |
|
bool | hasCsValue () const |
| Returns true if this setup specifies a value for the standard "Cs" parameter.
|
|
| IE_CORE_DECLAREMEMBERPTR (RefCounted) |
|
void | addRef () const |
| Add a reference to the current object.
|
|
void | removeRef () const |
| Remove a reference from the current object.
|
|
RefCount | refCount () const |
| Returns the current reference count.
|
|
Shaders are only useful when associated with a set of values for their uniform parameters and vertex attributes, and to render different objects in different forms different sets of values will be a necessary. The Setup class encapsulates a set of such values and provides a means of cleanly binding and unbinding the Shader using them.