DI-Guy C++ SDK Reference
13.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
diguyOsgGraphicsMesh.h
Go to the documentation of this file.
1
#ifndef diguyOsgGraphicsMesh_h__
2
#define diguyOsgGraphicsMesh_h__
3
4
5
/*********************************************************************
6
**
7
*2 diguyOsgGraphicsMesh
8
**
9
*/
10
11
#include <
diguyGraphicsMesh.h
>
12
13
#include <osg/Drawable>
14
15
class
diguyGraphicsVertexData;
16
17
18
/**********************************************************************
19
**
20
** Class declaration. diguyOsgGraphicsMesh publicly inherits
21
** diguyGraphicsMesh. Virtual functions are declared for some of the
22
** virtual functions in the base class.
23
*/
24
class
diguyOsgGraphicsMesh
:
public
diguyGraphicsMesh
25
{
26
27
public
:
28
29
diguyOsgGraphicsMesh
(
void
* internal_data);
30
31
virtual
void
build
();
32
virtual
void
unbuild
();
33
34
osg::PrimitiveSet*
get_primitiveSet
() {
return
m_primitiveSet
; }
35
int
get_num_drawables
();
36
osg::Drawable*
get_drawable
(
int
drawable_index = 0);
37
38
protected
:
39
40
osg::ref_ptr<osg::PrimitiveSet>
m_primitiveSet
;
41
std::vector<osg::ref_ptr<osg::Drawable> >
m_drawables
;
42
std::vector<bool>
m_has_graphics_state_set
;
43
44
void
attach_state_set_to_drawable
(
int
drawable_index);
45
};
46
47
52
diguyGraphicsMesh
*
diguyOsgGraphicsMesh_create_func
(
void
* internal_data);
53
54
#endif // diguyOsgGraphicsMesh_h__
diguy
programming_examples
diguy_graphics_api
osg_2_examples
common
diguyOsgGraphicsMesh.h
Generated on Wed Jul 9 2014 21:35:58 for DI-Guy C++ SDK Reference by
1.8.3.1