Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
LitRenderModifier Class Reference

Class LitRenderModifier: Abstract base class for RenderModifiers that apply a shadow map. More...

#include <RenderModifiers.h>

Inheritance diagram for LitRenderModifier:
Collaboration diagram for LitRenderModifier:

Public Member Functions

 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

const ShadowMapm_Shadow
 
const CLightEnvm_LightEnv
 

Detailed Description

Class LitRenderModifier: Abstract base class for RenderModifiers that apply a shadow map.

LitRenderModifiers expect the diffuse brightness in the primary color (instead of ambient + diffuse).

Constructor & Destructor Documentation

◆ LitRenderModifier()

LitRenderModifier::LitRenderModifier ( )

◆ ~LitRenderModifier()

LitRenderModifier::~LitRenderModifier ( )

Member Function Documentation

◆ GetLightEnv()

const CLightEnv * LitRenderModifier::GetLightEnv ( ) const
inline

◆ GetShadowMap()

const ShadowMap * LitRenderModifier::GetShadowMap ( ) const
inline

◆ SetLightEnv()

void LitRenderModifier::SetLightEnv ( const CLightEnv lightenv)

SetLightEnv: Set the light environment that will be used for rendering.

Must be called by the user of the RenderModifier.

Parameters
lightenvthe light environment (must be non-null)

◆ SetShadowMap()

void LitRenderModifier::SetShadowMap ( const ShadowMap shadow)

SetShadowMap: Set the shadow map that will be used for rendering.

Must be called by the user of the RenderModifier.

The shadow map must be non-null and use depth texturing, or subsequent rendering using this RenderModifier will fail.

Parameters
shadowthe shadow map

Member Data Documentation

◆ m_LightEnv

const CLightEnv* LitRenderModifier::m_LightEnv
private

◆ m_Shadow

const ShadowMap* LitRenderModifier::m_Shadow
private

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