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

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

Inheritance diagram for WSGLBlinnPhongShaderImplementation:
[legend]

Public Member Functions

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

Constructor & Destructor Documentation

◆ WSGLBlinnPhongShaderImplementation()

◆ ~WSGLBlinnPhongShaderImplementation()

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.