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
vrvGraphics
DtProjected2DFlatEffect.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvGraphics/Dt2DEffect.h
>
13
14
namespace
makVrv
15
{
16
19
class
DT_DLL_VRVGRAPHICS
DtProjected2DFlatEffect
:
public
Dt2DEffect
20
{
21
public
:
22
24
DtProjected2DFlatEffect
();
25
27
virtual
~
DtProjected2DFlatEffect
();
28
30
virtual
void
setCamera(
bool
geocentric,
float
occluded,
31
const
double
position[3],
const
double
projection[16] );
32
33
//Set the number of groups.
34
virtual
void
setGroupCount(
unsigned
int
count );
35
36
// Sets the given attributes to the OpenGL context.
37
virtual
void
setVaryingAttributes(
size_t
stride,
38
const
VaryingAttributeAddress
& positionAddress,
39
const
VaryingAttributeAddress
& colorAddress,
40
const
VaryingAttributeAddress
& offsetAddress,
41
const
VaryingAttributeAddress
& rotationAddress );
42
44
virtual
void
unsetVaryingAttributes();
45
46
protected
:
47
49
virtual
void
updateUniformLocations();
50
52
virtual
void
updateUniforms();
53
55
virtual
void
initializeShaderSource(
void
);
56
57
protected
:
58
59
int
myUniform_CameraPos
;
60
int
myUniform_CameraMat
;
61
int
myUniform_GroupCount
;
62
int
myUniform_Sphere
;
63
int
myUniform_OccludedAlpha
;
64
65
unsigned
int
myUnit
;
66
unsigned
int
myGroupCount
;
67
double
myCameraPos[3];
68
double
myMatrix[16];
69
bool
myGeocentricFlag
;
70
float
myGeocentricAlpha
;
71
72
};
73
74
77
class
DT_DLL_VRVGRAPHICS
DtProjected2DFlatQuadEffectCreator
:
public
DtEffectCreator
78
{
79
public
:
80
81
virtual
DtEffect
* create(
CreateParameters
* params = 0 )
82
{
83
return
new
DtProjected2DFlatEffect
();
84
}
85
86
};
87
88
}
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
)