VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtIndirectEffectTexturesTemplate.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <
vrvGraphicsUtils/DtCommonTypes.h
>
15
16
namespace
makVrv
17
{
29
// Example: a template with types registered in order with these types, will have the corresponding internal index:
30
// ETT_NORMAL_MAP -> 0
31
// ETT_AO_MAP -> 1
32
// ETT_SPECULAR_MAP -> 2
33
// ETT_LIGHT_MAP -> 3
34
// even though the corresponding enums in DtOsgEffectTextureController::EffectTextureType are not necessarily that index/in order
35
// This enforced ordering ensures that the textures referred to in the indirect rendering engine code/shaders will always be found at those indices
36
class
DT_DLL_VRVOSG
DtIndirectEffectTexturesTemplate
37
{
38
public
:
40
DtIndirectEffectTexturesTemplate
();
41
43
virtual
~
DtIndirectEffectTexturesTemplate
();
44
46
virtual
void
registerType(
int
type);
47
49
virtual
int
numEffectTextures(
void
)
const
;
50
52
virtual
int
indexForType(
int
type)
const
;
53
55
virtual
int
typeForIndex(
int
index)
const
;
56
protected
:
57
MapIntToInt
myTypeToIndex
;
58
MapIntToInt
myIndexToType
;
59
};
60
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)