Cortex
10.0.0-a4
|
#include <Shader.h>
Public Member Functions | |
ScopedBinding (const Setup &setup) | |
~ScopedBinding () | |
Unbinds the setup, reverting to the previous state. | |
The ScopedBinding class cleanly binds and unbinds the shader Setup, making the shader current and setting the uniform and vertex values as necessary.
IECoreGL::Shader::Setup::ScopedBinding::ScopedBinding | ( | const Setup & | setup | ) |
Binds the setup. It is the responsibility of the caller to ensure the setup remains alive for the lifetime of the ScopedBinding. The setup will also be registered with the current Selector if necessary.