AO4MO
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Wolfgang
Documents
Studium
Semster 11
Vis2
Abgabe
src
AO4OM
VertexArrayObject.h
1
#pragma once
2
#include <GL\glew.h>
3
#include <map>
4
8
class
VertexArrayObject
9
{
10
public
:
14
enum
VertexData
{
15
VERTEX_POS
=0,
16
VERTEX_COLOR_A
,
17
VERTEX_COLOR_C
,
18
VERTEX_RADIUS
,
19
VERTEX_UV
,
20
VERTEX_TEXTURE_POS
,
21
VERTEX_ST
,
22
VERTEX_DIR
23
};
27
enum
VertexDataSize
{
28
VERTEX_POS_SIZE
=3,
29
VERTEX_COLOR_A_SIZE
=3,
30
VERTEX_COLOR_C_SIZE
=3,
31
VERTEX_RADIUS_SIZE
=1,
32
VERTEX_UV_SIZE
=2,
33
VERTEX_TEXTURE_POS_SIZE
=4,
34
VERTEX_ST_SIZE
=2,
35
VERTEX_DIR_SIZE
=3
36
};
40
struct
vertex
{
41
float
pos[
VERTEX_POS_SIZE
];
42
float
colorA[
VERTEX_COLOR_A_SIZE
];
43
float
colorC[
VERTEX_COLOR_C_SIZE
];
44
float
radius[
VERTEX_RADIUS_SIZE
];
45
float
uv[
VERTEX_UV_SIZE
];
46
float
textureMinMaxPos[
VERTEX_TEXTURE_POS_SIZE
];
47
float
st[
VERTEX_ST_SIZE
];
48
float
dir[
VERTEX_DIR_SIZE
];
49
};
50
VertexArrayObject
(
void
);
51
~
VertexArrayObject
(
void
);
52
56
void
initAccess
();
60
void
bind
();
64
void
release
();
68
void
create
();
69
GLuint
name
;
71
};
72
Generated on Tue Jun 11 2013 13:19:20 for AO4MO by
1.8.4