VR-Forces 4.5 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
vrvOsg
DtOsgTextureBufferObjectApplyAttribute.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <map>
15
16
#include <osg/StateAttribute>
17
18
namespace
osg
19
{
20
class
State;
21
}
22
23
namespace
makVrv
24
{
25
class
DtGLTextureBufferObject;
26
27
class
DT_DLL_VRVOSG
TextureBufferObjectApplyAttribute
:
public
osg::StateAttribute
28
{
29
public
:
30
TextureBufferObjectApplyAttribute
();
31
32
void
addTextureBuffferObject(
size_t
index,
DtGLTextureBufferObject
* texture);
33
DtGLTextureBufferObject
* getTextureBufferObject(
size_t
index);
34
void
removeTextureBufferObject(
size_t
index,
DtGLTextureBufferObject
* texture);
35
36
TextureBufferObjectApplyAttribute
(
const
TextureBufferObjectApplyAttribute
& copy,
const
osg::CopyOp& copyOp =
37
osg::CopyOp::SHALLOW_COPY);
38
39
virtual
~
TextureBufferObjectApplyAttribute
();
40
41
virtual
void
apply(osg::State& state)
const
;
42
43
virtual
int
compare(
const
StateAttribute
& sa)
const
;
44
45
META_StateAttribute(osg,
TextureBufferObjectApplyAttribute
, osg::StateAttribute::Type(TRANSFORMFEEDBACKBUFFERBINDING+2))
46
private:
47
typedef std::map<
size_t
,
DtGLTextureBufferObject
*> MapTexUnitToTextureBufferObjects;
48
MapTexUnitToTextureBufferObjects myMapTexUnitToTextures;
49
};
50
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)