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
quadsquare_render.cpp File Reference
#include "quadsquare.h"
#include "aux_texture.h"

Go to the source code of this file.

Macros

#define V0   (Vertex[0].vertindex)
 
#define T0   ( Vertex[0].GetTex() )
 
#define V1   (Vertex[1].vertindex)
 
#define T1   ( Vertex[1].GetTex() )
 
#define V2   (cd.Verts[0].vertindex)
 
#define T2   ( cd.Verts[0].GetTex() )
 
#define V3   (Vertex[2].vertindex)
 
#define T3   ( Vertex[2].GetTex() )
 
#define V4   (cd.Verts[1].vertindex)
 
#define T4   ( cd.Verts[1].GetTex() )
 
#define V5   (Vertex[3].vertindex)
 
#define T5   ( Vertex[3].GetTex() )
 
#define V6   (cd.Verts[2].vertindex)
 
#define T6   ( cd.Verts[2].GetTex() )
 
#define V7   (Vertex[4].vertindex)
 
#define T7   ( Vertex[4].GetTex() )
 
#define V8   (cd.Verts[3].vertindex)
 
#define T8   ( cd.Verts[3].GetTex() )
 

Typedefs

typedef std::vector< TextureIndexvecTextureIndex
 
typedef std::vector
< TerrainTexture
vecTextureStar
 

Functions

static void TerrainMakeActive (const TerrainTexture &text)
 
static void TerrainMakeClearActive (const TerrainTexture &text)
 
static void TerrainMakeDeactive (const TerrainTexture text)
 
void RotateTriRight (unsigned int &aa, unsigned short &ta, unsigned int &bb, unsigned short &tb, unsigned int &cc, unsigned short &tc)
 
void RotateTriLeft (unsigned int &aa, unsigned short &ta, unsigned int &bb, unsigned short &tb, unsigned int &cc, unsigned short &tc)
 

Variables

float SphereTransformRenderlevel = 0
 

Macro Definition Documentation

#define T0   ( Vertex[0].GetTex() )
#define T1   ( Vertex[1].GetTex() )
#define T2   ( cd.Verts[0].GetTex() )
#define T3   ( Vertex[2].GetTex() )
#define T4   ( cd.Verts[1].GetTex() )
#define T5   ( Vertex[3].GetTex() )
#define T6   ( cd.Verts[2].GetTex() )
#define T7   ( Vertex[4].GetTex() )
#define T8   ( cd.Verts[3].GetTex() )
#define V0   (Vertex[0].vertindex)
#define V1   (Vertex[1].vertindex)
#define V2   (cd.Verts[0].vertindex)
#define V3   (Vertex[2].vertindex)
#define V4   (cd.Verts[1].vertindex)
#define V5   (Vertex[3].vertindex)
#define V6   (cd.Verts[2].vertindex)
#define V7   (Vertex[4].vertindex)
#define V8   (cd.Verts[3].vertindex)

Typedef Documentation

typedef std::vector< TextureIndex > vecTextureIndex

Definition at line 33 of file quadsquare_render.cpp.

typedef std::vector< TerrainTexture > vecTextureStar

Definition at line 34 of file quadsquare_render.cpp.

Function Documentation

void RotateTriLeft ( unsigned int aa,
unsigned short &  ta,
unsigned int bb,
unsigned short &  tb,
unsigned int cc,
unsigned short &  tc 
)
inline

Definition at line 108 of file quadsquare_render.cpp.

114 {
115  unsigned int baki;
116  unsigned short baks;
117  baks = ta;
118  baki = aa;
119  aa = bb;
120  ta = tb;
121  bb = baki;
122  tb = baks;
123  baks = tc;
124  baki = cc;
125  tc = ta;
126  cc = aa;
127  aa = baki;
128  ta = baks;
129 }
void RotateTriRight ( unsigned int aa,
unsigned short &  ta,
unsigned int bb,
unsigned short &  tb,
unsigned int cc,
unsigned short &  tc 
)
inline

Definition at line 85 of file quadsquare_render.cpp.

91 {
92  unsigned int baki;
93  unsigned short baks;
94  baks = ta;
95  baki = aa;
96  aa = cc;
97  ta = tc;
98  cc = baki;
99  tc = baks;
100  baks = tb;
101  baki = bb;
102  tb = ta;
103  bb = aa;
104  aa = baki;
105  ta = baks;
106 }
static void TerrainMakeActive ( const TerrainTexture text)
static
static void TerrainMakeClearActive ( const TerrainTexture text)
static
static void TerrainMakeDeactive ( const TerrainTexture  text)
static

Definition at line 28 of file quadsquare_render.cpp.

References TerrainTexture::t, and TerrainTexture::tex.

Referenced by quadsquare::Render().

29 {
30  if (text.tex.t) {}
31 }

Variable Documentation

float SphereTransformRenderlevel = 0

Definition at line 4 of file quadsquare_render.cpp.

Referenced by SphericalTransform::BoxInFrustum().