DI-Guy SDK Documentation  13.8
diguyOsgGraphicsState.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
8 #include <diguyGraphicsState.h>
9 
10 #include <osg/StateSet>
11 
26 {
27 
28 public:
29 
30  diguyOsgGraphicsState(void* internal_data);
31 
32  virtual void build() override;
33  virtual void unbuild() override;
34 
35  osg::StateSet* get_state_set() {return m_state_set.get();}
36 
37 protected:
38 
39  osg::ref_ptr<osg::StateSet> m_state_set;
40 };
41 
42 
49 
50 
Graphics state objects mostly serve as containers for other sub-objects, such as materials and textur...
Definition: diguyOsgGraphicsState.h:25
virtual void unbuild() override
This function will be called by DI-Guy when it is time for a renderer-specific state object to be des...
virtual void build() override
This function will be called by DI-Guy when it is time for a renderer-specific state object to be cre...
A class that represents a shared material/textures combination.
Definition: diguyGraphicsState.h:44
osg::ref_ptr< osg::StateSet > m_state_set
Definition: diguyOsgGraphicsState.h:39
diguyGraphicsState * diguyOsgGraphicsState_create_func(void *internal_data)
Create function declaration.
osg::StateSet * get_state_set()
Definition: diguyOsgGraphicsState.h:35
diguyOsgGraphicsState(void *internal_data)