VR-Vantage API Documentation
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 
22  virtual void setLightPosition(osg::Vec3 pos);
23  virtual void setAmbientColor(osg::Vec4 color);
24  virtual void setDiffuseColor(osg::Vec4 color);
25 
26  virtual ~DtEnvironmentInfo();
27 
28  protected:
30 
31  private:
32  osg::Vec3 myLightPosition;
33  osg::Vec4 myAmbientColor;
34  osg::Vec4 myDiffuseColor;
35  };
36 }


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)