cherish
ProgramPolygon.h
1 #ifndef PROGRAMPOLYGON_H
2 #define PROGRAMPOLYGON_H
3 
4 #include <osg/Program>
5 #include <osg/StateSet>
6 #include <osg/observer_ptr>
7 #include <osg/Camera>
8 #include <osg/MatrixTransform>
9 
10 #include "ProgramEntity2D.h"
11 
13 {
14 public:
16 
17  virtual void initialize(osg::StateSet* state, osg::Camera* camera, osg::MatrixTransform* t, bool isFogged);
18 
20  virtual void updateIsFogged(bool f);
21 
22  bool getIsFogged() const;
23 
24 protected:
25  virtual bool addPresetShaders();
26  virtual bool addPresetUniforms();
27 
28 protected:
29  bool m_isFogged;
30 
31 };
32 
33 #endif // PROGRAMPOLYGON_H
A virtual class to be inhereted by program for stroke, polygon and other entities.
Definition: ProgramEntity2D.h:17
Definition: ProgramPolygon.h:12
virtual void updateIsFogged(bool f)
Definition: ProgramPolygon.cpp:25