Public Member Functions | Static Public Member Functions

IRTShaderManager2 Class Reference

Search for all occurrences

Detailed Description

An extension to the IRTShaderManager interface.

#include <IRTShaderNode.h>

Inheritance diagram for IRTShaderManager2:
Inheritance graph
[legend]

List of all members.

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

IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2
IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2 IRTShaderManager2