TORCS  1.3.9
The Open Racing Car Simulator
grVtxTable Class Reference

#include <grvtxtable.h>

Inherits ssgVtxTable.

Collaboration diagram for grVtxTable:

Public Member Functions

virtual ssgBase * clone (int clone_flags=0)
 
 grVtxTable (int _numMapLevel, int _mapLevel)
 
 grVtxTable (GLenum ty, ssgVertexArray *vl, ssgNormalArray *nl, ssgTexCoordArray *tl, ssgTexCoordArray *tl1, ssgTexCoordArray *tl2, ssgTexCoordArray *tl3, int _numMapLevel, int _mapLevel, ssgColourArray *cl, int _indexCar)
 
 grVtxTable (GLenum ty, ssgVertexArray *vl, ssgIndexArray *stripeIndex, int _numstripes, ssgIndexArray *il, ssgNormalArray *nl, ssgTexCoordArray *tl, ssgTexCoordArray *tl1, ssgTexCoordArray *tl2, ssgTexCoordArray *tl3, int _numMapLevel, int _mapLevel, ssgColourArray *cl, int _indexCar)
 
 grVtxTable (ssgVertexArray *shd_vtx, float initsize, int type)
 
float * getTexCoord1 (int i)
 
float * getTexCoord2 (int i)
 
float * getTexCoord3 (int i)
 
ssgState * getState1 ()
 
void setState1 (ssgState *st)
 
ssgState * getState2 ()
 
void setState2 (ssgState *st)
 
ssgState * getState3 ()
 
void setState3 (ssgState *st)
 
virtual void draw ()
 
void draw_geometry_array ()
 
void draw_geometry_multi ()
 
void draw_geometry_for_a_car ()
 
void draw_geometry_multi_array ()
 
void draw_geometry_for_a_car_array ()
 
virtual void drawHighlight (sgVec4 colour)
 
virtual void drawHighlight (sgVec4 colour, int i)
 
virtual void pick (int baseName)
 
virtual void transform (const sgMat4 m)
 
int getNumVertices ()
 
int getNumNormals ()
 
int getNumColours ()
 
int getNumTexCoords ()
 
int getNumTriangles ()
 
void getTriangle (int n, short *v1, short *v2, short *v3)
 
int getNumLines ()
 
void getLine (int n, short *v1, short *v2)
 
virtual ~grVtxTable (void)
 
virtual const char * getTypeName (void)
 
virtual void setVertices (ssgVertexArray *vl)
 
virtual void setNormals (ssgNormalArray *nl)
 
virtual void setTexCoords (ssgTexCoordArray *tl)
 
virtual void setColours (ssgColourArray *cl)
 
virtual int load (FILE *fd)
 
virtual int save (FILE *fd)
 

Public Attributes

int numMapLevel
 
int mapLevelBitmap
 
int indexCar
 

Protected Member Functions

virtual void copy_from (grVtxTable *src, int clone_flags)
 

Protected Attributes

ssgIndexArray * indices
 
ssgIndexArray * stripes
 
int numStripes
 
_SSG_PUBLIC __pad0__: ssgTexCoordArray *texcoords1
 
ssgTexCoordArray * texcoords2
 
ssgTexCoordArray * texcoords3
 

Private Attributes

grMultiTexStatestate1
 
grMultiTexStatestate2
 
grMultiTexStatestate3
 
int internalType
 

Detailed Description

Definition at line 62 of file grvtxtable.h.

Constructor & Destructor Documentation

◆ grVtxTable() [1/4]

grVtxTable::grVtxTable ( int  _numMapLevel,
int  _mapLevel 
)

Definition at line 103 of file grvtxtable.cpp.

◆ grVtxTable() [2/4]

grVtxTable::grVtxTable ( GLenum  ty,
ssgVertexArray *  vl,
ssgNormalArray *  nl,
ssgTexCoordArray *  tl,
ssgTexCoordArray *  tl1,
ssgTexCoordArray *  tl2,
ssgTexCoordArray *  tl3,
int  _numMapLevel,
int  _mapLevel,
ssgColourArray *  cl,
int  _indexCar 
)

Definition at line 152 of file grvtxtable.cpp.

◆ grVtxTable() [3/4]

grVtxTable::grVtxTable ( GLenum  ty,
ssgVertexArray *  vl,
ssgIndexArray *  stripeIndex,
int  _numstripes,
ssgIndexArray *  il,
ssgNormalArray *  nl,
ssgTexCoordArray *  tl,
ssgTexCoordArray *  tl1,
ssgTexCoordArray *  tl2,
ssgTexCoordArray *  tl3,
int  _numMapLevel,
int  _mapLevel,
ssgColourArray *  cl,
int  _indexCar 
)

Definition at line 118 of file grvtxtable.cpp.

◆ grVtxTable() [4/4]

grVtxTable::grVtxTable ( ssgVertexArray *  shd_vtx,
float  initsize,
int  type 
)

◆ ~grVtxTable()

grVtxTable::~grVtxTable ( void  )
virtual

Definition at line 179 of file grvtxtable.cpp.

Member Function Documentation

◆ clone()

ssgBase * grVtxTable::clone ( int  clone_flags = 0)
virtual

Definition at line 95 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ copy_from()

void grVtxTable::copy_from ( grVtxTable src,
int  clone_flags 
)
protectedvirtual

Definition at line 43 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw()

void grVtxTable::draw ( )
virtual

Definition at line 232 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw_geometry_array()

void grVtxTable::draw_geometry_array ( )

Definition at line 439 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw_geometry_for_a_car()

void grVtxTable::draw_geometry_for_a_car ( )

Definition at line 346 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw_geometry_for_a_car_array()

void grVtxTable::draw_geometry_for_a_car_array ( )

Definition at line 537 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw_geometry_multi()

void grVtxTable::draw_geometry_multi ( )

Definition at line 271 of file grvtxtable.cpp.

Here is the call graph for this function:

◆ draw_geometry_multi_array()

void grVtxTable::draw_geometry_multi_array ( )

◆ drawHighlight() [1/2]

virtual void grVtxTable::drawHighlight ( sgVec4  colour)
inlinevirtual

Definition at line 142 of file grvtxtable.h.

◆ drawHighlight() [2/2]

virtual void grVtxTable::drawHighlight ( sgVec4  colour,
int  i 
)
inlinevirtual

Definition at line 143 of file grvtxtable.h.

◆ getLine()

void grVtxTable::getLine ( int  n,
short *  v1,
short *  v2 
)
inline

Definition at line 158 of file grvtxtable.h.

◆ getNumColours()

int grVtxTable::getNumColours ( )
inline

Definition at line 151 of file grvtxtable.h.

◆ getNumLines()

int grVtxTable::getNumLines ( )
inline

Definition at line 157 of file grvtxtable.h.

◆ getNumNormals()

int grVtxTable::getNumNormals ( )
inline

Definition at line 150 of file grvtxtable.h.

◆ getNumTexCoords()

int grVtxTable::getNumTexCoords ( )
inline

Definition at line 152 of file grvtxtable.h.

◆ getNumTriangles()

int grVtxTable::getNumTriangles ( )
inline

Definition at line 155 of file grvtxtable.h.

◆ getNumVertices()

int grVtxTable::getNumVertices ( )
inline

Definition at line 149 of file grvtxtable.h.

◆ getState1()

ssgState* grVtxTable::getState1 ( )
inline

Definition at line 128 of file grvtxtable.h.

◆ getState2()

ssgState* grVtxTable::getState2 ( )
inline

Definition at line 130 of file grvtxtable.h.

◆ getState3()

ssgState* grVtxTable::getState3 ( )
inline

Definition at line 132 of file grvtxtable.h.

◆ getTexCoord1()

float* grVtxTable::getTexCoord1 ( int  i)
inline

Definition at line 118 of file grvtxtable.h.

Here is the call graph for this function:

◆ getTexCoord2()

float* grVtxTable::getTexCoord2 ( int  i)
inline

Definition at line 121 of file grvtxtable.h.

Here is the call graph for this function:

◆ getTexCoord3()

float* grVtxTable::getTexCoord3 ( int  i)
inline

Definition at line 124 of file grvtxtable.h.

Here is the call graph for this function:

◆ getTriangle()

void grVtxTable::getTriangle ( int  n,
short *  v1,
short *  v2,
short *  v3 
)
inline

Definition at line 156 of file grvtxtable.h.

◆ getTypeName()

virtual const char* grVtxTable::getTypeName ( void  )
inlinevirtual

Definition at line 163 of file grvtxtable.h.

◆ load()

virtual int grVtxTable::load ( FILE *  fd)
inlinevirtual

Definition at line 171 of file grvtxtable.h.

◆ pick()

virtual void grVtxTable::pick ( int  baseName)
inlinevirtual

Definition at line 145 of file grvtxtable.h.

◆ save()

virtual int grVtxTable::save ( FILE *  fd)
inlinevirtual

Definition at line 172 of file grvtxtable.h.

◆ setColours()

virtual void grVtxTable::setColours ( ssgColourArray *  cl)
inlinevirtual

Definition at line 168 of file grvtxtable.h.

◆ setNormals()

virtual void grVtxTable::setNormals ( ssgNormalArray *  nl)
inlinevirtual

Definition at line 166 of file grvtxtable.h.

◆ setState1()

void grVtxTable::setState1 ( ssgState *  st)

Definition at line 196 of file grvtxtable.cpp.

◆ setState2()

void grVtxTable::setState2 ( ssgState *  st)

Definition at line 208 of file grvtxtable.cpp.

◆ setState3()

void grVtxTable::setState3 ( ssgState *  st)

Definition at line 220 of file grvtxtable.cpp.

◆ setTexCoords()

virtual void grVtxTable::setTexCoords ( ssgTexCoordArray *  tl)
inlinevirtual

Definition at line 167 of file grvtxtable.h.

◆ setVertices()

virtual void grVtxTable::setVertices ( ssgVertexArray *  vl)
inlinevirtual

Definition at line 165 of file grvtxtable.h.

◆ transform()

virtual void grVtxTable::transform ( const sgMat4  m)
inlinevirtual

Definition at line 146 of file grvtxtable.h.

Member Data Documentation

◆ __pad0__

_SSG_PUBLIC grVtxTable::__pad0__
protected

Definition at line 82 of file grvtxtable.h.

◆ indexCar

int grVtxTable::indexCar

Definition at line 89 of file grvtxtable.h.

◆ indices

ssgIndexArray* grVtxTable::indices
protected

Definition at line 74 of file grvtxtable.h.

◆ internalType

int grVtxTable::internalType
private

Definition at line 70 of file grvtxtable.h.

◆ mapLevelBitmap

int grVtxTable::mapLevelBitmap

Definition at line 88 of file grvtxtable.h.

◆ numMapLevel

int grVtxTable::numMapLevel

Definition at line 87 of file grvtxtable.h.

◆ numStripes

int grVtxTable::numStripes
protected

Definition at line 76 of file grvtxtable.h.

◆ state1

grMultiTexState* grVtxTable::state1
private

Definition at line 64 of file grvtxtable.h.

◆ state2

grMultiTexState* grVtxTable::state2
private

Definition at line 65 of file grvtxtable.h.

◆ state3

grMultiTexState* grVtxTable::state3
private

Definition at line 66 of file grvtxtable.h.

◆ stripes

ssgIndexArray* grVtxTable::stripes
protected

Definition at line 75 of file grvtxtable.h.

◆ texcoords2

ssgTexCoordArray* grVtxTable::texcoords2
protected

Definition at line 83 of file grvtxtable.h.

◆ texcoords3

ssgTexCoordArray* grVtxTable::texcoords3
protected

Definition at line 84 of file grvtxtable.h.


The documentation for this class was generated from the following files: