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

Shadow mapping shader interface to render shadow map. More...

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

Inheritance diagram for ShadowMapRenderShaderImplementation:
Inheritance graph
Collaboration diagram for ShadowMapRenderShaderImplementation:
Collaboration graph

Public Member Functions

virtual ~ShadowMapRenderShaderImplementation ()
 Destructor. More...
 
virtual const string getId ()=0
 
virtual bool isInitialized ()=0
 
virtual void initialize ()=0
 Init shadow mapping. More...
 
virtual void useProgram (Engine *engine, int contextIdx)=0
 Use shadow map render shader program. More...
 
virtual void unUseProgram (int contextIdx)=0
 Un use shadow map render shader program. More...
 
virtual void updateMatrices (int contextIdx)=0
 Update matrices. More...
 
virtual void updateTextureMatrix (Renderer *renderer, int contextIdx)=0
 Update texture matrix. More...
 
virtual void updateMaterial (Renderer *renderer, int contextIdx)=0
 Update material. More...
 
virtual void updateLight (Renderer *renderer, int contextIdx, int32_t lightId)=0
 Update light. 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...
 
virtual void setDepthBiasMVPMatrix (int contextIdx, const Matrix4x4 &depthBiasMVPMatrix)=0
 Set up program depth bias mvp matrix. More...
 
virtual void setRenderLightId (int32_t lightId)=0
 Set light id. More...
 

Detailed Description

Shadow mapping shader interface to render shadow map.

Author
Andreas Drewke
Version
$Id$

Definition at line 18 of file ShadowMapRenderShaderImplementation.h.

Constructor & Destructor Documentation

◆ ~ShadowMapRenderShaderImplementation()

virtual ~ShadowMapRenderShaderImplementation ( )
inlinevirtual

Destructor.

Definition at line 23 of file ShadowMapRenderShaderImplementation.h.

Member Function Documentation

◆ bindTexture()

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

Bind texture.

Parameters
rendererrenderer
contextcontet
textureIdtexture id

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ 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 ShadowMapRenderShaderBaseImplementation.

◆ setDepthBiasMVPMatrix()

virtual void setDepthBiasMVPMatrix ( int  contextIdx,
const Matrix4x4 depthBiasMVPMatrix 
)
pure virtual

Set up program depth bias mvp matrix.

Parameters
contextcontet
depthBiasMVPMatrixdepth bias mvp matrix

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ setRenderLightId()

virtual void setRenderLightId ( int32_t  lightId)
pure virtual

Set light id.

Parameters
lightIdlight id to render

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ unUseProgram()

virtual void unUseProgram ( int  contextIdx)
pure virtual

Un use shadow map render shader program.

Parameters
contextIdxcontext index

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ updateLight()

virtual void updateLight ( Renderer renderer,
int  contextIdx,
int32_t  lightId 
)
pure virtual

Update light.

Parameters
rendererrenderer
contextcontet
lightIdlight id

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ updateMaterial()

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

Update material.

Parameters
rendererrenderer
contextcontet

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ updateMatrices()

virtual void updateMatrices ( int  contextIdx)
pure virtual

Update matrices.

Parameters
contextIdxcontext index

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ updateShaderParameters()

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

◆ updateTextureMatrix()

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

Update texture matrix.

Parameters
rendererrenderer
contextcontet

Implemented in ShadowMapRenderShaderBaseImplementation.

◆ useProgram()

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

Use shadow map render shader program.

Parameters
engineengine
contextIdxcontext index

Implemented in ShadowMapRenderShaderBaseImplementation.


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