VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgFogComponent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <osg/Uniform>
14 
15 namespace osg
16 {
17  class Fog;
18  class StateSet;
19 }
20 
21 namespace makVrv
22 {
28  {
29  public:
32 
33  public: // DtOsgStateComponent interface
34 
36  virtual bool install(osg::StateSet* stateset);
37 
39  virtual bool uninstall(osg::StateSet* stateset);
40 
41  void setColor(const osg::Vec4f& fogColor);
42  void setDensity(float fDensity);
43 
44  osg::Vec4f color(void) const;
45  float density(void) const;
46 
47  protected:
48 
50  virtual ~DtOsgFogComponent();
51 
52  osg::ref_ptr<osg::Uniform> myFogColor;
53  osg::ref_ptr<osg::Uniform> myFogDensity;
54  };
55 }

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)