VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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  // needed for particle rendering
32  virtual void bind_now(diguyTextureMapType texture_type );
33  osg::Texture2D* texture() {return m_texture.get();}
34 
35  static osg::ref_ptr<osg::State> sm_state;
36 
37  osg::StateSet* get_texture_state_set() {return m_texture_state_set.get();}
38  void releaseGLObjects();
39 protected:
40 
41  osg::ref_ptr<osg::Texture2D> m_texture;
42  osg::ref_ptr<osg::StateSet> m_texture_state_set;
43 
44 public:
45  typedef std::vector<DtDiGuyOsgGraphicsTexture*> TextureList;
46  // FIXME: should refactor to rooted singleton pattern
48 };
49 
55 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)