TORCS  1.3.9
The Open Racing Car Simulator
ssgVtxTableShadow Class Reference

#include <grshadow.h>

Inherits ssgVtxTable.

Public Member Functions

virtual ssgBase * clone (int clone_flags=0)
 
 ssgVtxTableShadow (float f, float u)
 
 ssgVtxTableShadow ()
 
 ssgVtxTableShadow (GLenum ty, ssgVertexArray *vl, ssgNormalArray *nl, ssgTexCoordArray *tl, ssgColourArray *cl)
 
void setOffset (float f, float u)
 
void draw_geometry ()
 
virtual void drawHighlight (sgVec4 colour)
 
virtual void drawHighlight (sgVec4 colour, int i)
 
virtual void pick (int baseName)
 
virtual void transform (const sgMat4 m)
 
virtual void setVertices (ssgVertexArray *vl)
 
virtual void setNormals (ssgNormalArray *nl)
 
virtual void setTexCoords (ssgTexCoordArray *tl)
 
virtual void setColours (ssgColourArray *cl)
 
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 ~ssgVtxTableShadow (void)
 
virtual const char * getTypeName (void)
 
virtual int load (FILE *fd)
 
virtual int save (FILE *fd)
 

Protected Member Functions

virtual void copy_from (ssgVtxTableShadow *src, int clone_flags)
 

Protected Attributes

float factor
 
float unit
 

Detailed Description

Definition at line 1 of file grshadow.h.

Constructor & Destructor Documentation

◆ ssgVtxTableShadow() [1/3]

ssgVtxTableShadow::ssgVtxTableShadow ( float  f,
float  u 
)

Definition at line 45 of file grshadow.cpp.

◆ ssgVtxTableShadow() [2/3]

ssgVtxTableShadow::ssgVtxTableShadow ( )

Definition at line 38 of file grshadow.cpp.

◆ ssgVtxTableShadow() [3/3]

ssgVtxTableShadow::ssgVtxTableShadow ( GLenum  ty,
ssgVertexArray *  vl,
ssgNormalArray *  nl,
ssgTexCoordArray *  tl,
ssgColourArray *  cl 
)

Definition at line 51 of file grshadow.cpp.

◆ ~ssgVtxTableShadow()

ssgVtxTableShadow::~ssgVtxTableShadow ( void  )
virtual

Definition at line 61 of file grshadow.cpp.

Member Function Documentation

◆ clone()

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

Definition at line 32 of file grshadow.cpp.

Here is the call graph for this function:

◆ copy_from()

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

Definition at line 26 of file grshadow.cpp.

◆ draw_geometry()

void ssgVtxTableShadow::draw_geometry ( )

Definition at line 78 of file grshadow.cpp.

Here is the call graph for this function:

◆ drawHighlight() [1/2]

virtual void ssgVtxTableShadow::drawHighlight ( sgVec4  colour)
inlinevirtual

Definition at line 19 of file grshadow.h.

◆ drawHighlight() [2/2]

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

Definition at line 20 of file grshadow.h.

◆ getLine()

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

Definition at line 38 of file grshadow.h.

◆ getNumColours()

int ssgVtxTableShadow::getNumColours ( )
inline

Definition at line 32 of file grshadow.h.

◆ getNumLines()

int ssgVtxTableShadow::getNumLines ( )
inline

Definition at line 37 of file grshadow.h.

◆ getNumNormals()

int ssgVtxTableShadow::getNumNormals ( )
inline

Definition at line 31 of file grshadow.h.

◆ getNumTexCoords()

int ssgVtxTableShadow::getNumTexCoords ( )
inline

Definition at line 33 of file grshadow.h.

◆ getNumTriangles()

int ssgVtxTableShadow::getNumTriangles ( )
inline

Definition at line 35 of file grshadow.h.

◆ getNumVertices()

int ssgVtxTableShadow::getNumVertices ( )
inline

Definition at line 30 of file grshadow.h.

◆ getTriangle()

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

Definition at line 36 of file grshadow.h.

◆ getTypeName()

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

Definition at line 43 of file grshadow.h.

◆ load()

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

Definition at line 45 of file grshadow.h.

◆ pick()

virtual void ssgVtxTableShadow::pick ( int  baseName)
inlinevirtual

Definition at line 22 of file grshadow.h.

◆ save()

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

Definition at line 46 of file grshadow.h.

◆ setColours()

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

Definition at line 28 of file grshadow.h.

◆ setNormals()

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

Definition at line 26 of file grshadow.h.

◆ setOffset()

void ssgVtxTableShadow::setOffset ( float  f,
float  u 
)

Definition at line 70 of file grshadow.cpp.

◆ setTexCoords()

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

Definition at line 27 of file grshadow.h.

◆ setVertices()

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

Definition at line 25 of file grshadow.h.

◆ transform()

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

Definition at line 23 of file grshadow.h.

Member Data Documentation

◆ factor

float ssgVtxTableShadow::factor
protected

Definition at line 4 of file grshadow.h.

◆ unit

float ssgVtxTableShadow::unit
protected

Definition at line 5 of file grshadow.h.


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