DI-Guy SDK Documentation  13.2
diguyOsgGraphicsState.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <diguyGraphicsState.h>
4 
5 #include <osg/StateSet>
6 
7 
8 
24 {
25 
26 public:
27 
28  diguyOsgGraphicsState(void* internal_data);
29 
30  virtual void build();
31  virtual void unbuild();
32 
33  osg::StateSet* get_state_set() {return m_state_set.get();}
34 
35 protected:
36 
37  osg::ref_ptr<osg::StateSet> m_state_set;
38 };
39 
40 
47 
48 
Graphics state objects mostly serve as containers for other sub-objects, such as materials and textur...
Definition: diguyOsgGraphicsState.h:21
A class that represents a shared material/textures combination.
Definition: diguyGraphicsState.h:44
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:179
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:48
osg::StateSet * get_state_set()
Definition: diguyOsgGraphicsState.h:31
diguyGraphicsState * diguyOsgGraphicsState_create_func(void *internal_data)
Create function declaration.
Definition: diguyOsgGraphicsState.cpp:198
diguyOsgGraphicsState(void *internal_data)
Definition: diguyOsgGraphicsState.cpp:21