TDME2 1.9.121
|
Lighting shader implementation. More...
#include <tdme/engine/subsystems/lighting/LightingShaderTreeImplementation.h>
Public Member Functions | |
LightingShaderTreeImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual const string | getId () override |
virtual void | initialize () override |
Initialize renderer. More... | |
virtual void | registerShader () override |
Register shader. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override |
Update shader parameters. More... | |
![]() | |
LightingShaderBaseImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Initialize renderer. More... | |
virtual void | useProgram (Engine *engine, int contextIdx) override |
Use lighting program. More... | |
virtual void | unUseProgram (int contextIdx) override |
Unuse lighting program. More... | |
virtual void | updateEffect (Renderer *renderer, int contextIdx) override |
Update effect to program. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx) override |
Update material to program. More... | |
virtual void | updateLight (Renderer *renderer, int contextIdx, int32_t lightId) override |
Update light to program. More... | |
virtual void | updateMatrices (Renderer *renderer, int contextIdx) override |
Update matrices to program. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx) override |
Update texture matrix to program. More... | |
virtual void | bindTexture (Renderer *renderer, int contextIdx, int32_t textureId) override |
Bind texture. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override=0 |
Update shader parameters. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Private Attributes | |
int32_t | uniformSpeed { -1 } |
Lighting shader implementation.
Definition at line 18 of file LightingShaderTreeImplementation.h.
LightingShaderTreeImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 27 of file LightingShaderTreeImplementation.cpp.
|
overridevirtual |
Implements LightingShaderImplementation.
Definition at line 31 of file LightingShaderTreeImplementation.cpp.
|
overridevirtual |
Initialize renderer.
Reimplemented from LightingShaderBaseImplementation.
Definition at line 35 of file LightingShaderTreeImplementation.cpp.
|
static |
renderer | renderer |
Definition at line 23 of file LightingShaderTreeImplementation.cpp.
|
overridevirtual |
Register shader.
Implements LightingShaderImplementation.
Definition at line 91 of file LightingShaderTreeImplementation.cpp.
|
overridevirtual |
Update shader parameters.
renderer | renderer |
context |
Implements LightingShaderBaseImplementation.
Definition at line 99 of file LightingShaderTreeImplementation.cpp.
|
private |
Definition at line 21 of file LightingShaderTreeImplementation.h.