VR-Forces 4.3.1 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
DtOsgTextureApplyAttribute.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 <map>
13
#include <osg/StateAttribute>
14
15
namespace
osg
16
{
17
class
State;
18
}
19
20
namespace
makVrv
21
{
22
class
DtGLTexture;
23
24
class
TextureApplyAttribute
:
public
osg::StateAttribute
25
{
26
public
:
27
TextureApplyAttribute
();
28
29
void
addTexture
(
size_t
index,
DtGLTexture
* texture);
30
DtGLTexture
*
getTexture
(
size_t
index);
31
void
removeTexture
(
size_t
index,
DtGLTexture
* texture);
32
33
TextureApplyAttribute
(
const
TextureApplyAttribute
& copy,
const
osg::CopyOp& copyOp =
34
osg::CopyOp::SHALLOW_COPY);
35
36
virtual
~TextureApplyAttribute
();
37
38
virtual
void
apply
(osg::State& state)
const
;
39
40
virtual
int
compare
(
const
StateAttribute
& sa)
const
;
41
42
META_StateAttribute(osg,
TextureApplyAttribute
, osg::StateAttribute::Type(TRANSFORMFEEDBACKBUFFERBINDING+1))
43
private:
44
typedef std::map<
size_t
,
DtGLTexture
*> MapTexUnitToTextures;
45
MapTexUnitToTextures
myMapTexUnitToTextures
;
46
};
47
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)