VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEnvironmentInfo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vrvOsg/vrvOsg.h>
5 
6 #include <osg/Vec3>
7 #include <osg/Vec4>
8 
9 namespace makVrv
10 {
11  class DtDe;
12 
14  {
15  public:
16  static DtEnvironmentInfo& instance(DtDe& de);
17 
18  virtual osg::Vec3 lightPosition();
19  virtual osg::Vec4 ambientColor();
20  virtual osg::Vec4 diffuseColor();
21  virtual osg::Vec4 fogColor();
22  virtual float fogDensity();
23 
24  virtual void setLightPosition(const osg::Vec3& pos);
25  virtual void setAmbientColor(const osg::Vec4& color);
26  virtual void setDiffuseColor(const osg::Vec4& color);
27  virtual void setFogColor(const osg::Vec4& color);
28  virtual void setFogDensity(float density);
29 
30  virtual ~DtEnvironmentInfo();
31 
32  protected:
34 
35  private:
36  osg::Vec3 myLightPosition;
37  osg::Vec4 myAmbientColor;
38  osg::Vec4 myDiffuseColor;
39  osg::Vec4 myFogColor;
40  float myFogDensity;
41  };
42 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)