DI-Guy SDK Documentation  13.1
diguyOsgGraphicsTexture.h
Go to the documentation of this file.
1 #ifndef diguyOsgGraphicsTexture_h__
2 #define diguyOsgGraphicsTexture_h__
3 
4 
5 /*********************************************************************
6  **
7  *2 diguyOsgGraphicsTexture
8  **
9  */
10 
11 #include <diguyGraphicsTexture.h>
12 
13 #include <osg/Texture2D>
14 #include <osg/StateSet>
15 
16 
17 /**********************************************************************
18  **
19  ** Class declaration. diguyOsgGraphicsTexture publicly inherits
20  ** diguyGraphicsTexture. Virtual functions are declared for some of the
21  ** virtual functions in the base class.
22  */
24 {
25 
26 public:
27 
28  diguyOsgGraphicsTexture(void* internal_data);
29 
30  virtual void build();
31  virtual void unbuild();
32 
33  osg::Texture2D* get_texture() {return m_texture.get();}
34 
35 protected:
36 
37  osg::ref_ptr<osg::Texture2D> m_texture;
38 };
39 
45 #endif // diguyOsgGraphicsTexture_h__
46 
osg::ref_ptr< osg::Texture2D > m_texture
Definition: diguyOsgGraphicsTexture.h:36
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be d...
Definition: diguyOsgGraphicsTexture.cpp:215
Definition: diguyOsgGraphicsTexture.h:22
diguyOsgGraphicsTexture(void *internal_data)
4 Header files and forward declarations
Definition: diguyOsgGraphicsTexture.cpp:42
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be c...
Definition: diguyOsgGraphicsTexture.cpp:72
A class that represents a shared texture. Can be subclassed by filling out the diguy_graphics_set_tex...
Definition: diguyGraphicsTexture.h:124
diguyGraphicsTexture * diguyOsgGraphicsTexture_create_func(void *internal_data)
Create function declaration.
Definition: diguyOsgGraphicsTexture.cpp:235
osg::Texture2D * get_texture()
Definition: diguyOsgGraphicsTexture.h:32