Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DShaderInterface Class Referenceabstract

Inherited by CloudTextureShader, FlatShroudTextureShader, FlatTerrainShader2Stage, FlatTerrainShaderPixelShader, MaskTextureShader, RoadShader2Stage, RoadShaderPixelShader, ShroudTextureShader, TerrainShader2Stage, TerrainShader8Stage, and TerrainShaderPixelShader.

Public Member Functions

Int getNumPasses (void)
 
virtual Int set (Int pass)
 return number of passes needed for this shader
 
virtual void reset (void)
 do any custom resetting necessary to bring W3D in sync.
 
virtual Int init (void)=0
 perform any one time initialization and validation
 
virtual Int shutdown (void)
 

Protected Attributes

Int m_numPasses
 release resources used by shader
 

Detailed Description

Interface definition for custom shaders we define in our app. These shaders can perform more complex operations than those allowed in the WW3D2 shader system.

Definition at line 89 of file W3DShaderManager.cpp.

Member Function Documentation

◆ getNumPasses()

Int W3DShaderInterface::getNumPasses ( void )
inline

Definition at line 92 of file W3DShaderManager.cpp.

◆ init()

virtual Int W3DShaderInterface::init ( void )
pure virtual

perform any one time initialization and validation

Implemented in FlatTerrainShader2Stage, FlatTerrainShaderPixelShader, and TerrainShader2Stage.

◆ reset()

virtual void W3DShaderInterface::reset ( void )
inlinevirtual

do any custom resetting necessary to bring W3D in sync.

setup shader for the specified rendering pass.

Reimplemented in FlatTerrainShader2Stage, FlatTerrainShaderPixelShader, and TerrainShader2Stage.

Definition at line 95 of file W3DShaderManager.cpp.

◆ set()

virtual Int W3DShaderInterface::set ( Int pass)
inlinevirtual

return number of passes needed for this shader

Reimplemented in FlatTerrainShader2Stage, FlatTerrainShaderPixelShader, and TerrainShader2Stage.

Definition at line 93 of file W3DShaderManager.cpp.

◆ shutdown()

virtual Int W3DShaderInterface::shutdown ( void )
inlinevirtual

Reimplemented in FlatTerrainShaderPixelShader.

Definition at line 100 of file W3DShaderManager.cpp.

Member Data Documentation

◆ m_numPasses

Int W3DShaderInterface::m_numPasses
protected

release resources used by shader

number of passes to complete shader

Definition at line 102 of file W3DShaderManager.cpp.


The documentation for this class was generated from the following file: