TDME2 1.9.121
|
Lighting shader implementation interface. More...
#include <tdme/engine/subsystems/lighting/LightingShaderImplementation.h>
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... | |
Lighting shader implementation interface.
Definition at line 25 of file LightingShaderImplementation.h.
|
inlinevirtual |
Destructor.
Definition at line 30 of file LightingShaderImplementation.h.
|
pure virtual |
Bind texture.
renderer | renderer |
contextIdx | context index |
textureId | texture id |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Implemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, LightingShaderPBRTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, and LightingShaderWaterImplementation.
|
pure virtual |
Initialize renderer.
Implemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderBaseImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderPBRBaseImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, LightingShaderPBRTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, and LightingShaderWaterImplementation.
|
pure virtual |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Register shader.
Implemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, LightingShaderPBRTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, and LightingShaderWaterImplementation.
|
pure virtual |
Unuse lighting program.
contextIdx | context index |
Implemented in DeferredLightingShaderTerrainImplementation, LightingShaderBaseImplementation, LightingShaderPBRBaseImplementation, and LightingShaderTerrainImplementation.
|
pure virtual |
Update effect to program.
renderer | renderer |
contextIdx | context index |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Update light to program.
renderer | renderer |
contextIdx | context index |
lightId | light id |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Update material to program.
renderer | renderer |
contextIdx | context index |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Update matrices to program.
renderer | renderer |
contextIdx | context index |
Implemented in DeferredLightingShaderTerrainImplementation, LightingShaderBaseImplementation, LightingShaderPBRBaseImplementation, LightingShaderTerrainImplementation, and LightingShaderWaterImplementation.
|
pure virtual |
Update shader parameters.
renderer | renderer |
context |
Implemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, LightingShaderPBRTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, LightingShaderWaterImplementation, LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Update texture matrix to program.
renderer | renderer |
contextIdx | context index |
Implemented in LightingShaderBaseImplementation, and LightingShaderPBRBaseImplementation.
|
pure virtual |
Use lighting program.
engine | engine |
contextIdx | context index |
Implemented in DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, DeferredLightingShaderTerrainImplementation, LightingShaderBaseImplementation, LightingShaderPBRBaseImplementation, LightingShaderPBRFoliageImplementation, LightingShaderPBRTreeImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, and LightingShaderWaterImplementation.