DI-Guy SDK Documentation  13.1
diguyOsgGraphicsState.h
Go to the documentation of this file.
1 #ifndef diguyOsgGraphicsState_h__
2 #define diguyOsgGraphicsState_h__
3 
4 
5 /*********************************************************************
6  **
7  *2 diguyOsgGraphicsState
8  **
9  */
10 
11 #include <diguyGraphicsState.h>
12 
13 #include <osg/StateSet>
14 
15 
16 /**********************************************************************
17  **
18  ** Class declaration. diguyOsgGraphicsState publicly inherits
19  ** diguyGraphicsState. Virtual functions are declared for some of the
20  ** virtual functions in the base class.
21  */
23 {
24 
25 public:
26 
27  diguyOsgGraphicsState(void* internal_data);
28 
29  virtual void build();
30  virtual void unbuild();
31 
32  osg::StateSet* get_state_set() {return m_state_set.get();}
33 
34 protected:
35 
36  osg::ref_ptr<osg::StateSet> m_state_set;
37 };
38 
39 
45 #endif // diguyOsgGraphicsState_h__
46 
Definition: diguyOsgGraphicsState.h:21
A class that represents a shared material/textures combination.
Definition: diguyGraphicsState.h:37
osg::ref_ptr< osg::StateSet > m_state_set
Definition: diguyOsgGraphicsState.h:35
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific state object to be des...
Definition: diguyOsgGraphicsState.cpp:191
diguyGraphicsState * diguyOsgGraphicsState_create_func(void *internal_data)
Create function declaration.
Definition: diguyOsgGraphicsState.cpp:210
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific state object to be cre...
Definition: diguyOsgGraphicsState.cpp:67
osg::StateSet * get_state_set()
Definition: diguyOsgGraphicsState.h:31
diguyOsgGraphicsState(void *internal_data)
4 Header files and forward declarations
Definition: diguyOsgGraphicsState.cpp:40