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

Early z rejection shader implementation. More...

#include <tdme/engine/subsystems/earlyzrejection/EZRShaderImplementation.h>

Inheritance diagram for EZRShaderImplementation:
Inheritance graph
Collaboration diagram for EZRShaderImplementation:
Collaboration graph

Public Member Functions

virtual ~EZRShaderImplementation ()
 Destructor. More...
 
virtual const string getId ()=0
 
virtual bool isInitialized ()=0
 
virtual void initialize ()=0
 Init EZR render shader program implementation. More...
 
virtual void useProgram (Engine *engine, int contextIdx)=0
 Use EZR render shader program. More...
 
virtual void unUseProgram (int contextIdx)=0
 Unuse EZR render shader program. More...
 
virtual void updateMatrices (Renderer *renderer, 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 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

Early z rejection shader implementation.

Author
Andreas Drewke
Version
$Id$

Definition at line 22 of file EZRShaderImplementation.h.

Constructor & Destructor Documentation

◆ ~EZRShaderImplementation()

virtual ~EZRShaderImplementation ( )
inlinevirtual

Destructor.

Definition at line 27 of file EZRShaderImplementation.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 EZRShaderBaseImplementation.

◆ getId()

virtual const string getId ( )
pure virtual
Returns
shader id

Implemented in EZRShaderDefaultImplementation.

◆ initialize()

virtual void initialize ( )
pure virtual

Init EZR render shader program implementation.

Implemented in EZRShaderBaseImplementation, and EZRShaderDefaultImplementation.

◆ isInitialized()

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

Implemented in EZRShaderBaseImplementation.

◆ unUseProgram()

virtual void unUseProgram ( int  contextIdx)
pure virtual

Unuse EZR render shader program.

Parameters
contextIdxcontext index

Implemented in EZRShaderBaseImplementation.

◆ updateMaterial()

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

Update material.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in EZRShaderBaseImplementation.

◆ updateMatrices()

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

Update matrices.

Parameters
rendererrenderer
contextIdxcontext index

Implemented in EZRShaderBaseImplementation.

◆ updateShaderParameters()

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

Update shader parameters.

Parameters
rendererrenderer
context

Implemented in EZRShaderDefaultImplementation, and EZRShaderBaseImplementation.

◆ updateTextureMatrix()

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

update texture matrix

Parameters
rendererrenderer
contextIdxcontext index

Implemented in EZRShaderBaseImplementation.

◆ useProgram()

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

Use EZR render shader program.

Parameters
engineengine
contextIdxcontext index

Implemented in EZRShaderBaseImplementation.


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