Public Member Functions

ID3D10ShaderResource Class Reference

This reference page is linked to from the following overview topics: DirectX 10.


Search for all occurrences

Detailed Description

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>

Inheritance diagram for ID3D10ShaderResource:
Inheritance graph
[legend]

List of all members.

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.

Member Function Documentation

virtual Interface_ID GetID ( ) [inline, virtual]
Remarks:
This method returns the unique interface ID.

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.

Parameters:
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.

Returns:
True/false depending on whether the shader is active.
virtual void DrawShaderResource ( INode node,
Mesh mesh,
int  mtlNum 
) [pure virtual]

Signal a draw request.

The GFX layer will call this method to signify that the object needs to be drawn

Parameters:
*node The actual node being rendered
*mesh The actual mesh being rendered
mtlNum The material number, in case of a multi material
virtual void DrawShaderResource ( INode node,
MNMesh mesh,
int  mtlNum 
) [pure virtual]

Signal a draw request.

The GFX layer will call this method to signify that the object needs to be drawn

Parameters:
*node The actual node being rendered
*mesh The actual mesh being rendered
mtlNum The material number, in case of a multi material

ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource
ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource ID3D10ShaderResource