OGRE  2.2.4
Object-Oriented Graphics Rendering Engine
Ogre::LightClosest Struct Reference

Used as the light list, sorted. More...

#include <OgreCommon.h>

Public Member Functions

 LightClosest ()
 
 LightClosest (Light *_light, size_t _globalIndex, Real _distance)
 
bool operator< (const LightClosest &right) const
 

Public Attributes

Real distance
 
size_t globalIndex
 Index to SceneManager::mGlobalLightList. More...
 
bool isDirty
 
bool isStatic
 
Lightlight
 

Detailed Description

Used as the light list, sorted.

Constructor & Destructor Documentation

◆ LightClosest() [1/2]

Ogre::LightClosest::LightClosest ( )
inline

◆ LightClosest() [2/2]

Ogre::LightClosest::LightClosest ( Light _light,
size_t  _globalIndex,
Real  _distance 
)
inline

Member Function Documentation

◆ operator<()

bool Ogre::LightClosest::operator< ( const LightClosest right) const
inline

References distance.

Member Data Documentation

◆ distance

Real Ogre::LightClosest::distance

Referenced by operator<().

◆ globalIndex

size_t Ogre::LightClosest::globalIndex

Index to SceneManager::mGlobalLightList.

globalIndex may be == SceneManager::mGlobalLightList.size() if it holds a static light (see CompositorShadowNode::setLightFixedToShadowMap) that is not currently in camera.

◆ isDirty

bool Ogre::LightClosest::isDirty

◆ isStatic

bool Ogre::LightClosest::isStatic

◆ light

Light* Ogre::LightClosest::light

The documentation for this struct was generated from the following file: