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
glVertex Struct Reference

#include <vertex.h>

Public Member Functions

glVertexSetTexCoord (float s, float t)
 
glVertexSetNormal (const Vector &norm)
 
glVertexSetVertex (const Vector &vert)
 

Public Attributes

float s
 
float t
 
float i
 
float j
 
float k
 
float x
 
float y
 
float z
 

Detailed Description

Definition at line 4 of file vertex.h.

Member Function Documentation

glVertex& glVertex::SetNormal ( const Vector norm)
inline

Definition at line 20 of file vertex.h.

References i, j, and k.

21  {
22  i = norm.i;
23  j = norm.j;
24  k = norm.k;
25  return *this;
26  }
glVertex& glVertex::SetTexCoord ( float  s,
float  t 
)
inline

Definition at line 14 of file vertex.h.

References s, and t.

15  {
16  this->s = s;
17  this->t = t;
18  return *this;
19  }
glVertex& glVertex::SetVertex ( const Vector vert)
inline

Definition at line 27 of file vertex.h.

References x, y, and z.

28  {
29  x = vert.i;
30  y = vert.j;
31  z = vert.k;
32  return *this;
33  }

Member Data Documentation

float glVertex::i

Definition at line 8 of file vertex.h.

Referenced by SetNormal().

float glVertex::j

Definition at line 9 of file vertex.h.

Referenced by SetNormal().

float glVertex::k

Definition at line 10 of file vertex.h.

Referenced by SetNormal().

float glVertex::s

Definition at line 6 of file vertex.h.

Referenced by SetTexCoord().

float glVertex::t

Definition at line 7 of file vertex.h.

Referenced by SetTexCoord().

float glVertex::x

Definition at line 11 of file vertex.h.

Referenced by SetVertex().

float glVertex::y

Definition at line 12 of file vertex.h.

Referenced by SetVertex().

float glVertex::z

Definition at line 13 of file vertex.h.

Referenced by SetVertex().


The documentation for this struct was generated from the following file: