Back to index

extremetuxracer  0.5beta
Functions
FTVectoriser.cpp File Reference
#include "FTVectoriser.h"
#include "FTGL.h"

Go to the source code of this file.

Functions

void CALLBACK ftglError (GLenum errCode, FTMesh *mesh)
void CALLBACK ftglVertex (void *data, FTMesh *mesh)
void CALLBACK ftglCombine (FTGL_DOUBLE coords[3], void *vertex_data[4], GLfloat weight[4], void **outData, FTMesh *mesh)
void CALLBACK ftglBegin (GLenum type, FTMesh *mesh)
void CALLBACK ftglEnd (FTMesh *mesh)

Function Documentation

void CALLBACK ftglBegin ( GLenum  type,
FTMesh *  mesh 
)

Definition at line 39 of file FTVectoriser.cpp.

{
    mesh->Begin( type);
}
void CALLBACK ftglCombine ( FTGL_DOUBLE  coords[3],
void *  vertex_data[4],
GLfloat  weight[4],
void **  outData,
FTMesh *  mesh 
)

Definition at line 32 of file FTVectoriser.cpp.

{
    const FTGL_DOUBLE* vertex = static_cast<const FTGL_DOUBLE*>(coords);
    *outData = const_cast<FTGL_DOUBLE*>(mesh->Combine( vertex[0], vertex[1], vertex[2]));
}
void CALLBACK ftglEnd ( FTMesh *  mesh)

Definition at line 45 of file FTVectoriser.cpp.

{
    mesh->End();
}
void CALLBACK ftglError ( GLenum  errCode,
FTMesh *  mesh 
)

Definition at line 19 of file FTVectoriser.cpp.

{
    mesh->Error( errCode);
}
void CALLBACK ftglVertex ( void *  data,
FTMesh *  mesh 
)

Definition at line 25 of file FTVectoriser.cpp.

{
    FTGL_DOUBLE* vertex = static_cast<FTGL_DOUBLE*>(data);
    mesh->AddPoint( vertex[0], vertex[1], vertex[2]);
}