Base class for shader implementations. Associated with a specific factory.
More...
#include <Rendering/SceneComponents/Shaders/shaderimplementation.h>
- Note
- The architecture guarantees that a unique ShaderImplementation object will be created for each SceneRendererContext. This means that ShaderImplementation writers can safely store context specific state with the knowledge that the implementation will be used only on that one context.
◆ ShaderImplementation()
◆ ~ShaderImplementation()
◆ activate()
This function should be called prior to rendering the model with a shader.
- See also
- Shader
Implemented in WSGLBlinnPhongShaderImplementation, WSGLColorStateShaderImplementation, WSGLDepthShaderImplementation, WSGLElementColoringShaderImplementation, WSGLHighlightElementShaderImplementation, WSGLHighlightNodeShaderImplementation, WSGLLambertShaderImplementation, WSGLNodeColoringShaderImplementation, WSGLNormalShaderImplementation, WSGLOctreeShaderImplementation, WSGLSymbolShaderImplementation, WSGLTextureCoordShaderImplementation, WSGLTextureProjectionShaderImplementation, and WSGLVolumeShaderImplementation.
◆ deactivate()
- See also
- Shader
Implemented in WSGLBlinnPhongShaderImplementation, WSGLColorStateShaderImplementation, WSGLDepthShaderImplementation, WSGLElementColoringShaderImplementation, WSGLHighlightElementShaderImplementation, WSGLHighlightNodeShaderImplementation, WSGLLambertShaderImplementation, WSGLNodeColoringShaderImplementation, WSGLNormalShaderImplementation, WSGLOctreeShaderImplementation, WSGLSymbolShaderImplementation, WSGLTextureCoordShaderImplementation, WSGLTextureProjectionShaderImplementation, and WSGLVolumeShaderImplementation.
◆ getFactory()
- Returns
- The factory associated with this implementation.
Implemented in TypedShaderImplementation< S, R, Derived >, TypedShaderImplementation< BlinnPhongShader, WSGLRenderer, WSGLBlinnPhongShaderImplementation >, TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >, TypedShaderImplementation< DepthShader, WSGLRenderer, WSGLDepthShaderImplementation >, TypedShaderImplementation< ElementColoringShader, WSGLRenderer, WSGLElementColoringShaderImplementation >, TypedShaderImplementation< HighlightElementShader, WSGLRenderer, WSGLHighlightElementShaderImplementation >, TypedShaderImplementation< HighlightNodeShader, WSGLRenderer, WSGLHighlightNodeShaderImplementation >, TypedShaderImplementation< LambertShader, WSGLRenderer, WSGLLambertShaderImplementation >, TypedShaderImplementation< NodeColoringShader, WSGLRenderer, WSGLNodeColoringShaderImplementation >, TypedShaderImplementation< NormalShader, WSGLRenderer, WSGLNormalShaderImplementation >, TypedShaderImplementation< OctreeShader, WSGLRenderer, WSGLOctreeShaderImplementation >, TypedShaderImplementation< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >, TypedShaderImplementation< TextureCoordShader, WSGLRenderer, WSGLTextureCoordShaderImplementation >, TypedShaderImplementation< TextureProjectionShader, WSGLRenderer, WSGLTextureProjectionShaderImplementation >, and TypedShaderImplementation< VolumeShader, WSGLRenderer, WSGLVolumeShaderImplementation >.
◆ renderCurrentModel()
Implemented in WSGLBlinnPhongShaderImplementation, WSGLColorStateShaderImplementation, WSGLDepthShaderImplementation, WSGLElementColoringShaderImplementation, WSGLHighlightElementShaderImplementation, WSGLHighlightNodeShaderImplementation, WSGLLambertShaderImplementation, WSGLNodeColoringShaderImplementation, WSGLNormalShaderImplementation, WSGLOctreeShaderImplementation, WSGLSymbolShaderImplementation, WSGLTextureCoordShaderImplementation, WSGLTextureProjectionShaderImplementation, and WSGLVolumeShaderImplementation.
◆ renderCurrentModelGlyphs()
virtual bool renderCurrentModelGlyphs |
( |
SceneRenderer & |
renderer | ) |
|
|
pure virtual |
Implemented in WSGLBlinnPhongShaderImplementation, WSGLColorStateShaderImplementation, WSGLDepthShaderImplementation, WSGLElementColoringShaderImplementation, WSGLHighlightElementShaderImplementation, WSGLHighlightNodeShaderImplementation, WSGLLambertShaderImplementation, WSGLNodeColoringShaderImplementation, WSGLNormalShaderImplementation, WSGLOctreeShaderImplementation, WSGLSymbolShaderImplementation, WSGLTextureCoordShaderImplementation, WSGLTextureProjectionShaderImplementation, and WSGLVolumeShaderImplementation.