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
vrvGraphics
DtFlat2DRenderer.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/DtEffectRenderer.h
>
13
14
namespace
makVrv
15
{
16
19
struct
DtOffsetColoredVertex
20
{
21
DtOffsetColoredVertex
()
22
{
23
memset(
position
, 0,
sizeof
(
float
[4]) );
24
memset(
offset
, 0,
sizeof
(
float
[3]) );
25
memset(
color
, 0,
sizeof
(
float
[4]) );
26
trigRotation
[0] = 1.0f;
27
trigRotation
[1] = 0.0f;
28
}
29
30
float
trigRotation
[2];
31
float
position
[4];
32
float
offset
[3];
33
float
color
[4];
34
};
35
36
class
DtProjected2DFlatEffect
;
37
40
class
DT_DLL_VRVGRAPHICS
DtFlat2DRenderer
:
41
public
DtEffectRenderer
<DtOffsetColoredVertex>
42
{
43
public
:
44
46
DtFlat2DRenderer
(
DtProjected2DFlatEffect
* effect );
47
48
protected
:
49
51
virtual
void
bindVertexArrays(
const
DtOffsetColoredVertex
* vertexArray );
52
54
virtual
void
unbindVertexArrays();
55
56
protected
:
57
58
DtProjected2DFlatEffect
*
myEffect
;
59
60
};
61
62
}
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
)