Project

General

Profile

SO3Engine
SO3::SDeferredLightImpl Class Referenceabstract

#include <SO3DeferredLightImpl.h>

Inheritance diagram for SO3::SDeferredLightImpl:
SO3::SDeferredLightDirectional SO3::SDeferredLightPoint SO3::SDeferredLightSpot

Public Member Functions

 ~SDeferredLightImpl ()
 
bool GetCastShadows () const
 
virtual void SetAttenuation ()=0
 
virtual void RebuildGeometry ()=0
 
virtual const Ogre::MaterialPtr & getMaterial () const
 
virtual Ogre::Real getBoundingRadius () const =0
 
virtual Ogre::Real getSquaredViewDepth (const Ogre::Camera *) const =0
 
virtual void getWorldTransforms (Ogre::Matrix4 *xform) const =0
 
virtual void CheckCullingMode (Ogre::Camera *camera, Ogre::Pass *pass)=0
 
bool GetDebugRendering ()
 
void SetDebugRendering (bool enableDebugRendering)
 

Protected Member Functions

 SDeferredLightImpl (Ogre::Light *originalLight, std::string lightTypeName, SDeferredLightMaterialGenerator *typeLightMaterialGenerator)
 

Protected Attributes

Ogre::Light * ogreParentLight
 The light that this SDeferredLight renders.
 
const std::string lightType
 

Detailed Description

Abstract class defining how to implement a Deferred light (one derived class by light type).

Definition at line 38 of file SO3DeferredLightImpl.h.

Constructor & Destructor Documentation

◆ ~SDeferredLightImpl()

SO3::SDeferredLightImpl::~SDeferredLightImpl ( )

Destructor.

Definition at line 47 of file SO3DeferredLightImpl.cpp.

◆ SDeferredLightImpl()

SO3::SDeferredLightImpl::SDeferredLightImpl ( Ogre::Light *  originalLight,
std::string  lightTypeName,
SDeferredLightMaterialGenerator typeLightMaterialGenerator 
)
protected

To be used by derived classes only.

Definition at line 32 of file SO3DeferredLightImpl.cpp.

Member Function Documentation

◆ CheckCullingMode()

virtual void SO3::SDeferredLightImpl::CheckCullingMode ( Ogre::Camera *  camera,
Ogre::Pass *  pass 
)
pure virtual

◆ getBoundingRadius()

virtual Ogre::Real SO3::SDeferredLightImpl::getBoundingRadius ( ) const
pure virtual

◆ GetCastShadows()

bool SO3::SDeferredLightImpl::GetCastShadows ( ) const

Does this light cast shadows?

Definition at line 60 of file SO3DeferredLightImpl.cpp.

◆ GetDebugRendering()

bool SO3::SDeferredLightImpl::GetDebugRendering ( )

Return if the debug rendering is activated.

Definition at line 70 of file SO3DeferredLightImpl.cpp.

◆ getMaterial()

const Ogre::MaterialPtr & SO3::SDeferredLightImpl::getMaterial ( ) const
virtual

Definition at line 80 of file SO3DeferredLightImpl.cpp.

◆ getSquaredViewDepth()

virtual Ogre::Real SO3::SDeferredLightImpl::getSquaredViewDepth ( const Ogre::Camera *  ) const
pure virtual

◆ getWorldTransforms()

virtual void SO3::SDeferredLightImpl::getWorldTransforms ( Ogre::Matrix4 *  xform) const
pure virtual

◆ RebuildGeometry()

virtual void SO3::SDeferredLightImpl::RebuildGeometry ( )
pure virtual

Create geometry for this light.

Implemented in SO3::SDeferredLightDirectional, SO3::SDeferredLightPoint, and SO3::SDeferredLightSpot.

◆ SetAttenuation()

virtual void SO3::SDeferredLightImpl::SetAttenuation ( )
pure virtual

Set constant, linear, quadratic Attenuation terms

Implemented in SO3::SDeferredLightDirectional, SO3::SDeferredLightPoint, and SO3::SDeferredLightSpot.

◆ SetDebugRendering()

void SO3::SDeferredLightImpl::SetDebugRendering ( bool  enableDebugRendering)

Draw the area the light covers as a geometry, for debugging purpose.

Definition at line 75 of file SO3DeferredLightImpl.cpp.

Member Data Documentation

◆ lightType

const std::string SO3::SDeferredLightImpl::lightType
protected

Definition at line 43 of file SO3DeferredLightImpl.h.

◆ ogreParentLight

Ogre::Light* SO3::SDeferredLightImpl::ogreParentLight
protected

The light that this SDeferredLight renders.

Definition at line 42 of file SO3DeferredLightImpl.h.


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