Workspace 6.21.5
Public Member Functions | List of all members
WSGLColorStateShaderImplementation Class Reference

#include <Rendering/OpenGL/Shaders/wsglcolorstateshaderimplementation.h>

Inheritance diagram for WSGLColorStateShaderImplementation:
[legend]

Public Member Functions

 WSGLColorStateShaderImplementation (ColorStateShader &shader)
 
 ~WSGLColorStateShaderImplementation () override
 
bool activate (SceneRenderer &renderer) override
 Activates the shader on the target renderer. Subclasses must override this function with an implementation to contains the renderer-specific activation code they need.
 
bool deactivate (SceneRenderer &renderer) override
 Dectivates the shader on the target renderer. Subclasses must override this function with an implementation to contains the renderer-specific activation code they need.
 
bool renderCurrentModel (SceneRenderer &renderer) override
 Using the target renderer, render the current model.
 
bool renderCurrentModelGlyphs (SceneRenderer &renderer) override
 Using the target renderer, render the current model's glyphs.
 
- Public Member Functions inherited from TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >
 TypedShaderImplementation (ColorStateShader &shader)
 
virtual ~TypedShaderImplementation ()=default
 
const ShaderImplementationFactorygetFactory () const override
 
virtual const SceneRendererTypeIdgetSceneRendererType () const
 
- Public Member Functions inherited from ShaderImplementation
virtual ~ShaderImplementation ()=default
 
virtual bool activate (SceneRenderer &renderer)=0
 Activates the shader on the target renderer. Subclasses must override this function with an implementation to contains the renderer-specific activation code they need.
 
virtual bool deactivate (SceneRenderer &renderer)=0
 Dectivates the shader on the target renderer. Subclasses must override this function with an implementation to contains the renderer-specific activation code they need.
 
virtual const ShaderImplementationFactorygetFactory () const =0
 
virtual bool renderCurrentModel (SceneRenderer &renderer)=0
 Using the target renderer, render the current model.
 
virtual bool renderCurrentModelGlyphs (SceneRenderer &renderer)=0
 Using the target renderer, render the current model's glyphs.
 

Additional Inherited Members

- Public Types inherited from TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >
using renderer_type = WSGLRenderer
 
typedef ColorStateShader shader_type
 
- Static Public Member Functions inherited from TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >
static void registerImplementation ()
 
- Protected Member Functions inherited from TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >
ColorStateShadergetShader ()
 
const ColorStateShadergetShader () const
 
- Protected Member Functions inherited from ShaderImplementation
 ShaderImplementation ()=default
 
- Static Protected Member Functions inherited from TypedShaderImplementation< ColorStateShader, WSGLRenderer, WSGLColorStateShaderImplementation >
static WSGLRenderergetTypedRenderer (SceneRenderer &renderer)
 

Constructor & Destructor Documentation

◆ WSGLColorStateShaderImplementation()

◆ ~WSGLColorStateShaderImplementation()

Member Function Documentation

◆ activate()

bool activate ( SceneRenderer renderer)
overridevirtual

This function should be called prior to rendering the model with a shader.

See also
Shader

Implements ShaderImplementation.

◆ deactivate()

bool deactivate ( SceneRenderer renderer)
overridevirtual
See also
Shader

Implements ShaderImplementation.

◆ renderCurrentModel()

bool renderCurrentModel ( SceneRenderer renderer)
overridevirtual

Implements ShaderImplementation.

◆ renderCurrentModelGlyphs()

bool renderCurrentModelGlyphs ( SceneRenderer renderer)
overridevirtual

Implements ShaderImplementation.