-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextVertex.hpp
47 lines (45 loc) · 860 Bytes
/
TextVertex.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include "cs314Interfaces.h"
class cTextVertex
{
public:
cTextVertex()
{
mTexCoord[0]=0.0f;
mPosition[0]=0.0f;
mVelocity [0]=0.0f;
mAcceleration[0]=0.0f;
mTexCoord[1]=0.0f;
mPosition[1]=0.0f;
mVelocity [1]=0.0f;
mAcceleration[1]=0.0f;
mColor[0] = 0.0f;
mColor[1] = 0.0f;
mColor[2] = 0.0f;
mStartTime = -1.0f;
}
cTextVertex(float x, float y, float u, float v )
{
mTexCoord[0]=u;
mPosition[0]=x;
mVelocity [0]=0.0f;
mAcceleration[0]=0.0f;
mTexCoord[1]=v;
mPosition[1]=y;
mVelocity [1]=0.0f;
mAcceleration[1]=0.0f;
mColor[0] = 0.0f;
mColor[1] = 0.0f;
mColor[2] = 0.0f;
mStartTime = -1.0f;
}
~cTextVertex();
static void BindAttributes();
static int ByteStride();
float mTexCoord[2];
float mPosition[2];
float mVelocity [2];
float mAcceleration[2];
float mStartTime;
float mColor[3];
};