#include <spCgShaderClass.hpp>
Public Member Functions | |
CgShaderClass (VertexFormat *VertexInputLayout=0) | |
~CgShaderClass () | |
void | bind (const scene::MaterialNode *Object=0) |
void | unbind () |
Unbinds the table with its shaders. | |
bool | link () |
sp::video::CgShaderClass::CgShaderClass | ( | VertexFormat * | VertexInputLayout = 0 |
) |
sp::video::CgShaderClass::~CgShaderClass | ( | ) |
void sp::video::CgShaderClass::bind | ( | const scene::MaterialNode * | Object = 0 |
) | [virtual] |
Binds the table with its shaders.
Object,: | Pointer to a MaterialNode object which shall be used for the shader callback if set. |
Implements sp::video::ShaderClass.
bool sp::video::CgShaderClass::link | ( | ) | [virtual] |
Links the program with all its shaders.
Implements sp::video::ShaderClass.
void sp::video::CgShaderClass::unbind | ( | ) | [virtual] |
Unbinds the table with its shaders.
Implements sp::video::ShaderClass.