cherish
ProgramStroke.h
1 #ifndef PROGRAMSTROKE_H
2 #define PROGRAMSTROKE_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 
20 {
21 public:
23  ProgramStroke();
24 
26  void initialize(osg::StateSet* state, osg::Camera* camera, osg::MatrixTransform* t, bool isFogged);
27 
29  void updateIsFogged(bool f);
30 
31  bool getIsFogged() const;
32 
33 protected:
34  virtual bool addPresetShaders();
35  virtual bool addPresetUniforms();
36 
37 private:
38  bool m_isFogged; // of MainWindow::m_actionStrokeFogFactor
39 };
40 
41 #endif // PROGRAMSTROKE_H
A virtual class to be inhereted by program for stroke, polygon and other entities.
Definition: ProgramEntity2D.h:17
An interface class that deals with entity::Stroke shader&#39;s state.
Definition: ProgramStroke.h:19
void initialize(osg::StateSet *state, osg::Camera *camera, osg::MatrixTransform *t, bool isFogged)
Definition: ProgramStroke.cpp:19
void updateIsFogged(bool f)
Definition: ProgramStroke.cpp:26
ProgramStroke()
Definition: ProgramStroke.cpp:12