VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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(osg::Vec3 pos);
25  virtual void setAmbientColor(osg::Vec4 color);
26  virtual void setDiffuseColor(osg::Vec4 color);
27  virtual void setFogColor(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 Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)