IVertexShader Class Reference
 
 
 
IVertexShader Class Reference

#include <ihardwareshader.h>

Inheritance diagram for IVertexShader:
MaxHeapOperators IDX8VertexShader IDX9VertexShader IStdDualVS

Class Description

See also:
Class Mesh, Class INode

Description:
The abstract interface for a vertex shader.

Public Member Functions

virtual HRESULT  Initialize (Mesh *mesh, INode *node)=0
virtual HRESULT  Initialize (MNMesh *mnmesh, INode *node)=0

Member Function Documentation

virtual HRESULT Initialize ( Mesh mesh,
INode node 
) [pure virtual]
Remarks:
This method loads VertexShader instructions, create any additional per vertex data on a per node basis. VertexShader instructions should be loaded once and shared among all the nodes using this VertexShader. Additional per vertex data should be (re)created only when the associated node data changes. In addition, if there is sufficient memory, VertexBuffers can be created and updated only when node data changes in order to improve rendering performance.
Parameters:
Mesh *mesh

A pointer to the mesh to initialize.

INode *node

A pointer to the node to initialize.
virtual HRESULT Initialize ( MNMesh mnmesh,
INode node 
) [pure virtual]
Remarks:
This method loads VertexShader instructions, create any additional per vertex data on a per node basis. VertexShader instructions should be loaded once and shared among all the nodes using this VertexShader. Additional per vertex data should be (re)created only when the associated node data changes. In addition, if there is sufficient memory, VertexBuffers can be created and updated only when node data changes in order to improve rendering performance.
Parameters:
MNMesh *mnmesh

A pointer to the MNMesh to initialize.

INode *node

A pointer to the node to initialize.