Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ShaderRenderModifier Class Reference

A RenderModifier that sets uniforms and textures appropriately for rendering models. More...

#include <RenderModifiers.h>

Inheritance diagram for ShaderRenderModifier:
Collaboration diagram for ShaderRenderModifier:

Public Member Functions

 ShaderRenderModifier ()
 
void BeginPass (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader) override
 BeginPass: Setup OpenGL for the given rendering pass. More...
 
void PrepareModel (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, CModel *model) override
 PrepareModel: Called before rendering the given model. More...
 
- Public Member Functions inherited from LitRenderModifier
 LitRenderModifier ()
 
 ~LitRenderModifier ()
 
void SetShadowMap (const ShadowMap *shadow)
 SetShadowMap: Set the shadow map that will be used for rendering. More...
 
void SetLightEnv (const CLightEnv *lightenv)
 SetLightEnv: Set the light environment that will be used for rendering. More...
 
const ShadowMapGetShadowMap () const
 
const CLightEnvGetLightEnv () const
 
- Public Member Functions inherited from RenderModifier
 RenderModifier ()
 
virtual ~RenderModifier ()
 
virtual void BeginPass (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader)=0
 BeginPass: Setup OpenGL for the given rendering pass. More...
 
virtual void PrepareModel (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, CModel *model)=0
 PrepareModel: Called before rendering the given model. More...
 

Private Attributes

int32_t m_BindingInstancingTransform = -1
 
int32_t m_BindingShadingColor = -1
 
int32_t m_BindingPlayerColor = -1
 
CColor m_ShadingColor
 
CColor m_PlayerColor
 

Detailed Description

A RenderModifier that sets uniforms and textures appropriately for rendering models.

Constructor & Destructor Documentation

◆ ShaderRenderModifier()

ShaderRenderModifier::ShaderRenderModifier ( )

Member Function Documentation

◆ BeginPass()

void ShaderRenderModifier::BeginPass ( Renderer::Backend::IDeviceCommandContext deviceCommandContext,
Renderer::Backend::IShaderProgram shader 
)
overridevirtual

BeginPass: Setup OpenGL for the given rendering pass.

Must be implemented by derived classes.

Implements RenderModifier.

◆ PrepareModel()

void ShaderRenderModifier::PrepareModel ( Renderer::Backend::IDeviceCommandContext deviceCommandContext,
CModel model 
)
overridevirtual

PrepareModel: Called before rendering the given model.

Default behaviour does nothing.

Parameters
modelThe model that is about to be rendered.

Implements RenderModifier.

Member Data Documentation

◆ m_BindingInstancingTransform

int32_t ShaderRenderModifier::m_BindingInstancingTransform = -1
private

◆ m_BindingPlayerColor

int32_t ShaderRenderModifier::m_BindingPlayerColor = -1
private

◆ m_BindingShadingColor

int32_t ShaderRenderModifier::m_BindingShadingColor = -1
private

◆ m_PlayerColor

CColor ShaderRenderModifier::m_PlayerColor
private

◆ m_ShadingColor

CColor ShaderRenderModifier::m_ShadingColor
private

The documentation for this class was generated from the following files: