TDME2 1.9.121
Public Member Functions | Static Public Member Functions | List of all members
EZRShaderDefaultImplementation Class Reference

Early z rejection default shader class. More...

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

Inheritance diagram for EZRShaderDefaultImplementation:
Inheritance graph
Collaboration diagram for EZRShaderDefaultImplementation:
Collaboration graph

Public Member Functions

 EZRShaderDefaultImplementation (Renderer *renderer)
 Constructor. More...
 
 ~EZRShaderDefaultImplementation ()
 Destructor. More...
 
virtual const string getId () override
 
virtual void initialize () override
 Init EZR render shader program implementation. More...
 
virtual void updateShaderParameters (Renderer *renderer, int contextIdx) override
 Update shader parameters. More...
 
- Public Member Functions inherited from EZRShaderBaseImplementation
 EZRShaderBaseImplementation (Renderer *renderer)
 Constructor. More...
 
 ~EZRShaderBaseImplementation ()
 Destructor. More...
 
virtual bool isInitialized () override
 
virtual void initialize () override
 Init EZR render shader program implementation. More...
 
virtual void useProgram (Engine *engine, int contextIdx) override
 Use EZR render shader program. More...
 
virtual void unUseProgram (int contextIdx) override
 Unuse EZR render shader program. More...
 
virtual void updateMatrices (Renderer *renderer, int contextIdx) override
 Update matrices. More...
 
virtual void updateTextureMatrix (Renderer *renderer, int contextIdx) override
 update texture matrix More...
 
virtual void updateMaterial (Renderer *renderer, int contextIdx) override
 Update material. More...
 
virtual void updateShaderParameters (Renderer *renderer, int contextIdx) override=0
 Update shader parameters. More...
 
virtual void bindTexture (Renderer *renderer, int contextIdx, int32_t textureId) override
 Bind texture. More...
 
- Public Member Functions inherited from EZRShaderImplementation
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...
 

Static Public Member Functions

static bool isSupported (Renderer *renderer)
 

Additional Inherited Members

- Protected Attributes inherited from EZRShaderBaseImplementation
Rendererrenderer { nullptr }
 
int32_t vertexShaderId { -1 }
 
int32_t geometryShaderId { -1 }
 
int32_t fragmentShaderId {-1 }
 
int32_t programId { -1 }
 
int32_t uniformProjectionMatrix { -1 }
 
int32_t uniformCameraMatrix { -1 }
 
int32_t uniformMVPMatrix { -1 }
 
int32_t uniformTextureMatrix { -1 }
 
int32_t uniformTextureAtlasSize { -1 }
 
int32_t uniformTextureAtlasPixelDimension { -1 }
 
int32_t uniformDiffuseTextureUnit { -1 }
 
int32_t uniformDiffuseTextureAvailable { -1 }
 
int32_t uniformDiffuseTextureMaskedTransparency { -1 }
 
int32_t uniformDiffuseTextureMaskedTransparencyThreshold { -1 }
 
int32_t uniformFrame { -1 }
 
bool initialized { false }
 

Detailed Description

Early z rejection default shader class.

Author
Andreas Drewke
Version
$Id$

Definition at line 19 of file EZRShaderDefaultImplementation.h.

Constructor & Destructor Documentation

◆ EZRShaderDefaultImplementation()

Constructor.

Parameters
rendererrenderer

Definition at line 21 of file EZRShaderDefaultImplementation.cpp.

◆ ~EZRShaderDefaultImplementation()

Destructor.

Definition at line 25 of file EZRShaderDefaultImplementation.cpp.

Member Function Documentation

◆ getId()

const string getId ( )
overridevirtual
Returns
shader id

Implements EZRShaderImplementation.

Definition at line 28 of file EZRShaderDefaultImplementation.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Init EZR render shader program implementation.

Reimplemented from EZRShaderBaseImplementation.

Definition at line 32 of file EZRShaderDefaultImplementation.cpp.

◆ isSupported()

bool isSupported ( Renderer renderer)
static
Returns
if supported by renderer
Parameters
rendererrenderer

Definition at line 17 of file EZRShaderDefaultImplementation.cpp.

◆ updateShaderParameters()

void updateShaderParameters ( Renderer renderer,
int  contextIdx 
)
overridevirtual

Update shader parameters.

Parameters
rendererrenderer
context

Implements EZRShaderBaseImplementation.

Definition at line 59 of file EZRShaderDefaultImplementation.cpp.


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