VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvDiGuy
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
*/
20
class
DtDiGuyOsgGraphicsTexture
:
public
diguyGraphicsTexture
21
{
22
23
public
:
24
25
DtDiGuyOsgGraphicsTexture
(
void
* internal_data);
26
virtual
~DtDiGuyOsgGraphicsTexture
();
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
47
static
TextureList
s_textures
;
48
};
49
54
diguyGraphicsTexture
*
diguyOsgGraphicsTexture_create_func
(
void
* internal_data);
55
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)