OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lighting.hpp
Go to the documentation of this file.
1 #ifndef OPENCS_VIEW_LIGHTING_H
2 #define OPENCS_VIEW_LIGHTING_H
3 
4 #include <osg/ref_ptr>
5 
6 namespace osg
7 {
8  class Vec4f;
9  class LightSource;
10  class Group;
11 }
12 
13 namespace CSVRender
14 {
15  class Lighting
16  {
17  public:
18 
19  Lighting() : mRootNode(0) {}
20  virtual ~Lighting();
21 
22  virtual void activate (osg::Group* rootNode) = 0;
23 
24  virtual void deactivate() = 0;
25 
26  virtual osg::Vec4f getAmbientColour(osg::Vec4f* defaultAmbient) = 0;
27 
28  protected:
29 
30  osg::ref_ptr<osg::LightSource> mLightSource;
31  osg::Group* mRootNode;
32  };
33 }
34 
35 #endif
Definition: lighting.hpp:15
osg::Group * mRootNode
Definition: lighting.hpp:31
virtual ~Lighting()
Definition: lighting.cpp:5
virtual void deactivate()=0
osg::ref_ptr< osg::LightSource > mLightSource
Definition: lighting.hpp:30
virtual void activate(osg::Group *rootNode)=0
virtual osg::Vec4f getAmbientColour(osg::Vec4f *defaultAmbient)=0
Lighting()
Definition: lighting.hpp:19