Privacy
An open-source, flexible 3D physical simulation framework
mars::graphics::OSGLightStruct Class Reference

Wraps lightStruct in osg::LightSource. More...

#include <OSGLightStruct.h>

Public Member Functions

 OSGLightStruct (const mars::interfaces::LightData &ls)
 Constructor creates osg::LightSource from lightStruct. More...
 
void update (const mars::interfaces::LightData &ls)
 

Private Attributes

osg::ref_ptr< osg::Light > light_
 
osg::ref_ptr< osg::Geode > lightMarkerGeode
 

Detailed Description

Wraps lightStruct in osg::LightSource.

Definition at line 42 of file OSGLightStruct.h.

Constructor & Destructor Documentation

◆ OSGLightStruct()

mars::graphics::OSGLightStruct::OSGLightStruct ( const mars::interfaces::LightData ls)

Constructor creates osg::LightSource from lightStruct.

Definition at line 51 of file OSGLightStruct.cpp.

Member Function Documentation

◆ update()

void mars::graphics::OSGLightStruct::update ( const mars::interfaces::LightData ls)

Definition at line 98 of file OSGLightStruct.cpp.

Member Data Documentation

◆ light_

osg::ref_ptr<osg::Light> mars::graphics::OSGLightStruct::light_
private

Definition at line 51 of file OSGLightStruct.h.

◆ lightMarkerGeode

osg::ref_ptr<osg::Geode> mars::graphics::OSGLightStruct::lightMarkerGeode
private

Definition at line 52 of file OSGLightStruct.h.


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