VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDiGuyOsgGraphicsTexture.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  **
4  *2 DtDiGuyOsgGraphicsTexture
5  **
6  */
7 
8 #include <diguyGraphicsTexture.h>
9 
10 #include <osg/Texture2D>
11 #include <osg/StateSet>
12 
13 
14 /**********************************************************************
15  **
16  ** Class declaration. DtDiGuyOsgGraphicsTexture publicly inherits
17  ** diguyGraphicsTexture. Virtual functions are declared for some of the
18  ** virtual functions in the base class.
19  */
21 {
22 
23 public:
24 
25  DtDiGuyOsgGraphicsTexture(void* internal_data);
27 
28  virtual void build();
29  virtual void unbuild();
30 
31  osg::Texture2D* texture() {return m_texture.get();}
32  osg::StateSet* get_texture_state_set() {return m_texture_state_set.get();}
33  void releaseGLObjects();
34 protected:
35 
36  osg::ref_ptr<osg::Texture2D> m_texture;
37  osg::ref_ptr<osg::StateSet> m_texture_state_set;
38 
39 public:
40  typedef std::vector<DtDiGuyOsgGraphicsTexture*> TextureList;
41  // FIXME: should refactor to rooted singleton pattern
43 };
44 
50 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)