Public Member Functions

sp::video::CgShaderClass Class Reference

#include <spCgShaderClass.hpp>

Inheritance diagram for sp::video::CgShaderClass:
sp::video::ShaderClass sp::BaseObject

List of all members.

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 ()

Constructor & Destructor Documentation

sp::video::CgShaderClass::CgShaderClass ( VertexFormat VertexInputLayout = 0  ) 
sp::video::CgShaderClass::~CgShaderClass (  ) 

Member Function Documentation

void sp::video::CgShaderClass::bind ( const scene::MaterialNode Object = 0  )  [virtual]

Binds the table with its shaders.

Parameters:
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.

Todo:
Rename this to "compile"

Implements sp::video::ShaderClass.

void sp::video::CgShaderClass::unbind (  )  [virtual]

Unbinds the table with its shaders.

Implements sp::video::ShaderClass.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines