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

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

Inheritance diagram for WSGLSymbolShaderImplementation:
[legend]

Public Member Functions

 WSGLSymbolShaderImplementation (SymbolShader &shader)
 
 ~WSGLSymbolShaderImplementation () 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< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >
 TypedShaderImplementation (SymbolShader &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< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >
using renderer_type = WSGLRenderer
 
typedef SymbolShader shader_type
 
- Static Public Member Functions inherited from TypedShaderImplementation< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >
static void registerImplementation ()
 
- Protected Member Functions inherited from TypedShaderImplementation< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >
SymbolShadergetShader ()
 
const SymbolShadergetShader () const
 
- Protected Member Functions inherited from ShaderImplementation
 ShaderImplementation ()=default
 
- Static Protected Member Functions inherited from TypedShaderImplementation< SymbolShader, WSGLRenderer, WSGLSymbolShaderImplementation >
static WSGLRenderergetTypedRenderer (SceneRenderer &renderer)
 

Constructor & Destructor Documentation

◆ WSGLSymbolShaderImplementation()

◆ ~WSGLSymbolShaderImplementation()

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.