This reference page is linked to from the following overview topics: DirectX 10.
Interface used for drawing D3D 10 style hardware shaders.
A material would implement this interface to enable realtime shader drawing. The GFX layer will use this interface to communicate to the material, and control the draw sequence.
#include <IDX10HardwareRenderer.h>
Public Member Functions |
|
virtual Interface_ID | GetID () |
virtual void | InitializeDrawSequence (ID3D10GraphicsWindow *pD3D10gw)=0 |
Called at the beginning of the object draw
sequence. |
|
virtual bool | IsShaderResourceActive ()=0 |
Determines whether the shader is peforming
its own rendering. |
|
virtual void | DrawShaderResource (INode *node, Mesh *mesh, int mtlNum)=0 |
Signal a draw request. |
|
virtual void | DrawShaderResource (INode *node, MNMesh *mesh, int mtlNum)=0 |
Signal a draw request. |
virtual Interface_ID GetID | ( | ) | [inline, virtual] |
Reimplemented from BaseInterface.
{ return D3D10_SHADER_RESOURCE_INTERFACE_ID; }
virtual void InitializeDrawSequence | ( | ID3D10GraphicsWindow * | pD3D10gw | ) | [pure virtual] |
Called at the beginning of the object draw sequence.
Allows the material to setup all shader resources, prior to rendering.
pD3D10gw | A pointer the D3D10 GFX layer |
virtual bool IsShaderResourceActive | ( | ) | [pure virtual] |
Determines whether the shader is peforming its own rendering.
The GFX layer will use this to determine whether the material is performing the rendering of the object. It will set a flag in the GFX layer which will be used else where, in particular by the mesh/mnmesh classes, to avoid double drawing of the object.
Signal a draw request.
The GFX layer will call this method to signify that the object needs to be drawn
*node | The actual node being rendered |
*mesh | The actual mesh being rendered |
mtlNum | The material number, in case of a multi material |
Signal a draw request.
The GFX layer will call this method to signify that the object needs to be drawn
*node | The actual node being rendered |
*mesh | The actual mesh being rendered |
mtlNum | The material number, in case of a multi material |