Public Member Functions

IVertexShader Class Reference

Search for all occurrences

Detailed Description

See also:
Class Mesh, Class INode

Description:
This class is available in release 4.0 and later only.

The abstract interface for a vertex shader.

#include <ihardwareshader.h>

Inheritance diagram for IVertexShader:
Inheritance graph
[legend]

List of all members.

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.

IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader
IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader IVertexShader