OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
SceneUtil::LightStateAttribute Class Reference
Inheritance diagram for SceneUtil::LightStateAttribute:
Collaboration diagram for SceneUtil::LightStateAttribute:

Public Member Functions

 LightStateAttribute ()
 
 LightStateAttribute (unsigned int index, const std::vector< osg::ref_ptr< osg::Light > > &lights)
 
 LightStateAttribute (const LightStateAttribute &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
unsigned int getMember () const
 
virtual bool getModeUsage (ModeUsage &usage) const
 
virtual int compare (const StateAttribute &sa) const
 
state applyModelViewMatrix (state.getInitialViewMatrix())
 
 for (unsigned int i=0;i< mLights.size();++i) applyLight((GLenum)((int) GL_LIGHT0+i+mIndex)
 
mLights[i] get ())
 
state applyModelViewMatrix (modelViewMatrix)
 
void applyLight (GLenum lightNum, const osg::Light *light) const
 

Public Attributes

META_StateAttribute(NifOsg,
LightStateAttribute,
osg::StateAttribute::LIGHT)
virtual void apply(osg
osg::Matrix 
modelViewMatrix = state.getModelViewMatrix()
 

Private Attributes

unsigned int mIndex
 
std::vector< osg::ref_ptr
< osg::Light > > 
mLights
 

Constructor & Destructor Documentation

SceneUtil::LightStateAttribute::LightStateAttribute ( )
inline
SceneUtil::LightStateAttribute::LightStateAttribute ( unsigned int  index,
const std::vector< osg::ref_ptr< osg::Light > > &  lights 
)
inline
SceneUtil::LightStateAttribute::LightStateAttribute ( const LightStateAttribute copy,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Member Function Documentation

void SceneUtil::LightStateAttribute::applyLight ( GLenum  lightNum,
const osg::Light *  light 
) const
inline
state SceneUtil::LightStateAttribute::applyModelViewMatrix ( state.  getInitialViewMatrix())
state SceneUtil::LightStateAttribute::applyModelViewMatrix ( modelViewMatrix  )
virtual int SceneUtil::LightStateAttribute::compare ( const StateAttribute &  sa) const
inlinevirtual
SceneUtil::LightStateAttribute::for ( )
mLights [i] SceneUtil::LightStateAttribute::get ( )
unsigned int SceneUtil::LightStateAttribute::getMember ( ) const
inline
virtual bool SceneUtil::LightStateAttribute::getModeUsage ( ModeUsage &  usage) const
inlinevirtual

Member Data Documentation

unsigned int SceneUtil::LightStateAttribute::mIndex
private
std::vector<osg::ref_ptr<osg::Light> > SceneUtil::LightStateAttribute::mLights
private
META_StateAttribute (NifOsg, LightStateAttribute, osg::StateAttribute::LIGHT) virtual void apply(osg osg::Matrix SceneUtil::LightStateAttribute::modelViewMatrix = state.getModelViewMatrix()

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