TDME2 1.9.121
|
Early z rejection default shader class. More...
#include <tdme/engine/subsystems/earlyzrejection/EZRShaderDefaultImplementation.h>
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... | |
![]() | |
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... | |
![]() | |
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 | |
![]() | |
Renderer * | renderer { 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 } |
Early z rejection default shader class.
Definition at line 19 of file EZRShaderDefaultImplementation.h.
EZRShaderDefaultImplementation | ( | Renderer * | renderer | ) |
Constructor.
renderer | renderer |
Definition at line 21 of file EZRShaderDefaultImplementation.cpp.
Destructor.
Definition at line 25 of file EZRShaderDefaultImplementation.cpp.
|
overridevirtual |
Implements EZRShaderImplementation.
Definition at line 28 of file EZRShaderDefaultImplementation.cpp.
|
overridevirtual |
Init EZR render shader program implementation.
Reimplemented from EZRShaderBaseImplementation.
Definition at line 32 of file EZRShaderDefaultImplementation.cpp.
|
static |
renderer | renderer |
Definition at line 17 of file EZRShaderDefaultImplementation.cpp.
|
overridevirtual |
Update shader parameters.
renderer | renderer |
context |
Implements EZRShaderBaseImplementation.
Definition at line 59 of file EZRShaderDefaultImplementation.cpp.