VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDiGuyOsgGraphicsMesh.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  **
4  *2 diguyOsgGraphicsMesh
5  **
6  */
7 
8 #include <diguyGraphicsMesh.h>
9 
10 #include <osg/Drawable>
11 
12 class diguyGraphicsVertexData;
13 
14 
15 /**********************************************************************
16  **
17  ** Class declaration. diguyOsgGraphicsMesh publicly inherits
18  ** diguyGraphicsMesh. Virtual functions are declared for some of the
19  ** virtual functions in the base class.
20  */
22 {
23 
24 public:
25 
26  diguyOsgGraphicsMesh(void* internal_data);
27 
28  virtual void build();
29  virtual void unbuild();
30 
31  osg::PrimitiveSet* get_primitiveSet() { return m_primitiveSet; }
32  int get_num_drawables();
33  osg::Drawable* getDrawable(int drawable_index);
34 
35 protected:
36 
37  osg::ref_ptr<osg::PrimitiveSet> m_primitiveSet;
38  std::vector<osg::ref_ptr<osg::Drawable> > m_drawables;
39  std::vector<bool> m_has_graphics_state_set;
40 
41  void attach_state_set_to_drawable(int drawable_index);
42 };
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)