VR-Forces 4.3 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
DtTextured2DRenderer.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
#include <GL/glew.h>
15
16
namespace
makVrv
17
{
18
21
struct
DtOffsetColoredTexturedVertex
22
{
23
DtOffsetColoredTexturedVertex
()
24
{
25
memset(
position
, 0,
sizeof
(
float
[4]) );
26
memset(
offset
, 0,
sizeof
(
float
[3]) );
27
memset(
color
, 0,
sizeof
(
float
[4]) );
28
memset(
textCoord
, 0,
sizeof
(
float
[2]) );
29
trigRotation
[0] = 1.0f;
30
trigRotation
[1] = 0.0f;
31
}
32
33
float
position
[4];
34
float
offset
[3];
35
float
color
[4];
36
float
textCoord
[2];
37
float
trigRotation
[2];
38
};
39
40
class
DtProjected2DTexturedEffect
;
41
44
class
DT_DLL_VRVGRAPHICS
DtTextured2DRenderer
:
45
public
DtEffectRenderer
<DtOffsetColoredTexturedVertex>
46
{
47
public
:
48
50
DtTextured2DRenderer
(
DtProjected2DTexturedEffect
* effect,
bool
repeating =
false
);
51
53
void
bindBackgroundImageTexture(
unsigned
int
textureId );
54
55
protected
:
56
58
virtual
void
bindVertexArrays(
59
const
DtOffsetColoredTexturedVertex
* vertexArray );
60
62
virtual
void
unbindVertexArrays();
63
64
protected
:
65
66
DtProjected2DTexturedEffect
*
myEffect
;
67
bool
myRepeating
;
68
};
69
70
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)