Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vertex.h
Go to the documentation of this file.
1 #ifndef GFXVERTEX_H
2 #define GFXVERTEX_H
3 
4 struct glVertex
5 {
6  float s;
7  float t;
8  float i;
9  float j;
10  float k;
11  float x;
12  float y;
13  float z;
14  glVertex& SetTexCoord( float s, float t )
15  {
16  this->s = s;
17  this->t = t;
18  return *this;
19  }
20  glVertex& SetNormal( const Vector &norm )
21  {
22  i = norm.i;
23  j = norm.j;
24  k = norm.k;
25  return *this;
26  }
28  {
29  x = vert.i;
30  y = vert.j;
31  z = vert.k;
32  return *this;
33  }
34 };
35 
36 #endif
37