IRTShaderManager2 Class Reference
 
 
 
IRTShaderManager2 Class Reference

#include <IRTShaderNode.h>

Inheritance diagram for IRTShaderManager2:
IRTShaderManager MaxHeapOperators

Class Description

An extension to the IRTShaderManager interface.

Public Member Functions

virtual const MCHAR *  GetShaderCode (Animatable *anim)=0
  For the given Animatable access the compiled effect code from the system.

Static Public Member Functions

static DllExport
IRTShaderManager2
GetRTShaderManager2 ()
  Access to the IRTShaderManager2 interface.

Member Function Documentation

virtual const MCHAR* GetShaderCode ( Animatable anim ) [pure virtual]

For the given Animatable access the compiled effect code from the system.

THis will be the actual code generated by the tree compiler, and passed to the DirectX frame work.

Parameters:
[in] anim The animatable whose shader code is requested
Returns:
A buffer containing the effect (shader) code. The pointer should not be stored as the shader node responsible for maintaining the buffer could be destroyed.
static DllExport IRTShaderManager2* GetRTShaderManager2 ( ) [static]

Access to the IRTShaderManager2 interface.

A developer would use something like the following.

        IRTShaderManager2 * lpShaderMgr2 = IRTShaderManager2::GetIRTShaderManager2()

It is exported in the RTMax.dll

Returns:
Access to the IRTShaderManager2 singleton