OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions
lightutil.hpp File Reference
#include <osg/ref_ptr>
#include <osg/Vec4f>
Include dependency graph for lightutil.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 osg
 
 ESM
 ESM/ESP records.
 
 SceneUtil
 

Functions

void SceneUtil::addLight (osg::Group *node, const ESM::Light *esmLight, unsigned int partsysMask, unsigned int lightMask, bool isExterior, bool outQuadInLin, bool useQuadratic, float quadraticValue, float quadraticRadiusMult, bool useLinear, float linearRadiusMult, float linearValue)
 Convert an ESM::Light to a SceneUtil::LightSource, and add it to a sub graph. More...
 
osg::ref_ptr< LightSource > SceneUtil::createLightSource (const ESM::Light *esmLight, unsigned int lightMask, bool isExterior, bool outQuadInLin, bool useQuadratic, float quadraticValue, float quadraticRadiusMult, bool useLinear, float linearRadiusMult, float linearValue, const osg::Vec4f &ambient=osg::Vec4f(0, 0, 0, 1))
 Convert an ESM::Light to a SceneUtil::LightSource, and return it. More...