Cortex  10.0.0-a4
Public Member Functions | List of all members
IECoreGL::Shader::Setup::ScopedBinding Class Reference

#include <Shader.h>

Public Member Functions

 ScopedBinding (const Setup &setup)
 
 ~ScopedBinding ()
 Unbinds the setup, reverting to the previous state.
 

Detailed Description

The ScopedBinding class cleanly binds and unbinds the shader Setup, making the shader current and setting the uniform and vertex values as necessary.

Constructor & Destructor Documentation

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.


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