VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDiGuyOsgGraphicsMesh.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 /*********************************************************************
13  **
14  *2 diguyOsgGraphicsMesh
15  **
16  */
17 
18 #include <diguyGraphicsMesh.h>
19 
20 #include <osg/Drawable>
21 
22 class diguyGraphicsVertexData;
23 
24 
31 
33 {
34 
35 public:
36 
37  diguyOsgGraphicsMesh(void* internal_data);
38 
39  virtual void build();
40  virtual void unbuild();
41 
42  osg::PrimitiveSet* get_primitiveSet() { return m_primitiveSet; }
43  int get_num_drawables();
44  osg::Drawable* getDrawable(int drawable_index);
45 
46 protected:
47 
49  std::vector<osg::ref_ptr<osg::Drawable> > m_drawables;
50  std::vector<bool> m_has_graphics_state_set;
51 
52  void attach_state_set_to_drawable(int drawable_index);
53 };
54 
55 
61 
virtual void unbuild()
Class declaration.
Definition: DtDiGuyOsgGraphicsMesh.h:32
void attach_state_set_to_drawable(int drawable_index)
std::vector< bool > m_has_graphics_state_set
Definition: DtDiGuyOsgGraphicsMesh.h:50
diguyGraphicsMesh * diguyOsgGraphicsMesh_create_func(void *internal_data)
Create function declaration.
osg::Drawable * getDrawable(int drawable_index)
osg::PrimitiveSet * get_primitiveSet()
Definition: DtDiGuyOsgGraphicsMesh.h:42
std::vector< osg::ref_ptr< osg::Drawable > > m_drawables
Definition: DtDiGuyOsgGraphicsMesh.h:49
diguyOsgGraphicsMesh(void *internal_data)
virtual void build()
osg::ref_ptr< osg::PrimitiveSet > m_primitiveSet
Definition: DtDiGuyOsgGraphicsMesh.h:48

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)