TDME2 1.9.121
Public Member Functions | List of all members
ShadowMapCreationShaderImplementation Struct Referenceabstract

Pre shadow mapping shader for create shadow map. More...

#include <tdme/engine/subsystems/shadowmapping/ShadowMapCreationShaderImplementation.h>

Inheritance diagram for ShadowMapCreationShaderImplementation:
Inheritance graph
Collaboration diagram for ShadowMapCreationShaderImplementation:
Collaboration graph

Public Member Functions

virtual ~ShadowMapCreationShaderImplementation ()
 Destructor. More...
 
virtual const string getId ()=0
 
virtual bool isInitialized ()=0
 
virtual void initialize ()=0
 Init shadow map creation program. More...
 
virtual void useProgram (Engine *engine, int contextIdx)=0
 Use shadow map creation program. More...
 
virtual void unUseProgram (int contextIdx)=0
 Unuse shadow map creation program. More...
 
virtual void updateMatrices (int contextIdx)=0
 Set up program matrices. More...
 
virtual void updateTextureMatrix (Renderer *renderer, int contextIdx)=0
 Set up program texture matrix. More...
 
virtual void updateMaterial (Renderer *renderer, int contextIdx)=0
 Update material. More...
 
virtual void updateShaderParameters (Renderer *renderer, int contextIdx)=0
 Update shader parameters. More...
 
virtual void bindTexture (Renderer *renderer, int contextIdx, int32_t textureId)=0
 Bind texture. More...
 

Detailed Description

Pre shadow mapping shader for create shadow map.

Author
Andreas Drewke
Version
$Id$

Definition at line 22 of file ShadowMapCreationShaderImplementation.h.

Constructor & Destructor Documentation

◆ ~ShadowMapCreationShaderImplementation()

virtual ~ShadowMapCreationShaderImplementation ( )
inlinevirtual

Destructor.

Definition at line 27 of file ShadowMapCreationShaderImplementation.h.

Member Function Documentation

◆ bindTexture()

virtual void bindTexture ( Renderer renderer,
int  contextIdx,
int32_t  textureId 
)
pure virtual

Bind texture.

Parameters
rendererrenderer
contextIdxcontext index
textureIdtexture id

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ getId()

virtual const string getId ( )
pure virtual

◆ initialize()

virtual void initialize ( )
pure virtual

◆ isInitialized()

virtual bool isInitialized ( )
pure virtual
Returns
if initialized and ready to use

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ unUseProgram()

virtual void unUseProgram ( int  contextIdx)
pure virtual

Unuse shadow map creation program.

Parameters
contextIdxcontext index

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ updateMaterial()

virtual void updateMaterial ( Renderer renderer,
int  contextIdx 
)
pure virtual

Update material.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ updateMatrices()

virtual void updateMatrices ( int  contextIdx)
pure virtual

Set up program matrices.

Parameters
contextIdxcontext index

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ updateShaderParameters()

virtual void updateShaderParameters ( Renderer renderer,
int  contextIdx 
)
pure virtual

◆ updateTextureMatrix()

virtual void updateTextureMatrix ( Renderer renderer,
int  contextIdx 
)
pure virtual

Set up program texture matrix.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in ShadowMapCreationShaderBaseImplementation.

◆ useProgram()

virtual void useProgram ( Engine engine,
int  contextIdx 
)
pure virtual

Use shadow map creation program.

Parameters
engineengine
contextIdxcontext index

Implemented in ShadowMapCreationShaderBaseImplementation.


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