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

Lighting shader implementation interface. More...

#include <tdme/engine/subsystems/lighting/LightingShaderImplementation.h>

Inheritance diagram for LightingShaderImplementation:
Inheritance graph
Collaboration diagram for LightingShaderImplementation:
Collaboration graph

Public Member Functions

virtual ~LightingShaderImplementation ()
 Destructor. More...
 
virtual const string getId ()=0
 
virtual bool isInitialized ()=0
 
virtual void initialize ()=0
 Initialize renderer. More...
 
virtual void registerShader ()=0
 Register shader. More...
 
virtual void useProgram (Engine *engine, int contextIdx)=0
 Use lighting program. More...
 
virtual void unUseProgram (int contextIdx)=0
 Unuse lighting program. More...
 
virtual void updateEffect (Renderer *renderer, int contextIdx)=0
 Update effect to program. More...
 
virtual void updateMaterial (Renderer *renderer, int contextIdx)=0
 Update material to program. More...
 
virtual void updateLight (Renderer *renderer, int contextIdx, int32_t lightId)=0
 Update light to program. More...
 
virtual void updateMatrices (Renderer *renderer, int contextIdx)=0
 Update matrices to program. More...
 
virtual void updateTextureMatrix (Renderer *renderer, int contextIdx)=0
 Update texture matrix to program. 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

Lighting shader implementation interface.

Author
Andreas Drewke
Version
$Id$

Definition at line 25 of file LightingShaderImplementation.h.

Constructor & Destructor Documentation

◆ ~LightingShaderImplementation()

virtual ~LightingShaderImplementation ( )
inlinevirtual

Destructor.

Definition at line 30 of file LightingShaderImplementation.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 LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ getId()

virtual const string getId ( )
pure virtual

◆ initialize()

virtual void initialize ( )
pure virtual

◆ isInitialized()

virtual bool isInitialized ( )
pure virtual
Returns
initialized and ready to be used

Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ registerShader()

virtual void registerShader ( )
pure virtual

◆ unUseProgram()

virtual void unUseProgram ( int  contextIdx)
pure virtual

◆ updateEffect()

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

Update effect to program.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ updateLight()

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

Update light to program.

Parameters
rendererrenderer
contextIdxcontext index
lightIdlight id

Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ updateMaterial()

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

Update material to program.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ updateMatrices()

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

◆ updateShaderParameters()

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

◆ updateTextureMatrix()

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

Update texture matrix to program.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.

◆ useProgram()

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

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