torcs - 1.2.2

src/modules/graphic/ssggraph/grutil.h File Reference

#include <stdio.h>

Include dependency graph for grutil.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define TRACE_GL(msg)   { GLenum rc; if ((rc = glGetError()) != GL_NO_ERROR) printf("%s %s\n", msg, gluErrorString(rc)); }
#define DBG_SET_NAME(base, name, index, subindex)

Functions

int grGetFilename (char *filename, char *filepath, char *buf)
GLuint grLoadTexture (char *filename, char *filepath, float screen_gamma, int mipmap)
ssgState * grSsgEnvTexState (char *img)
ssgState * grSsgLoadTexState (char *img)
ssgState * grSsgLoadTexStateEx (char *img, char *filepath, int wrap, int mipmap)
int grPruneTree (ssgEntity *start, bool init)
void grForceState (ssgEntity *start, ssgState *state)
bool grLoadPngTexture (const char *fname, ssgTextureInfo *info)
void grShutdownState (void)
void grWriteTime (float *color, int font, int x, int y, tdble sec, int sgn)
float grGetHOT (float x, float y)

Variables

float grGammaValue
int grMipMap
char * grFilePath
char * grTexturePath


Define Documentation

#define DBG_SET_NAME base,
name,
index,
subindex   ) 
 

Value:

{                                                               \
    char __buf__[256];                                          \
    if (subindex != -1) {                                       \
        sprintf(__buf__, "%s-%d-%d", name, index, subindex);    \
    } else {                                                    \
        sprintf(__buf__, "%s-%d", name, index);                 \
    }                                                           \
    (base)->setName((const char *)__buf__);                     \
}

#define TRACE_GL msg   )     { GLenum rc; if ((rc = glGetError()) != GL_NO_ERROR) printf("%s %s\n", msg, gluErrorString(rc)); }
 


Function Documentation

void grForceState ssgEntity *  start,
ssgState *  state
 

int grGetFilename char *  filename,
char *  filepath,
char *  buf
 

float grGetHOT float  x,
float  y
 

bool grLoadPngTexture const char *  fname,
ssgTextureInfo *  info
 

GLuint grLoadTexture char *  filename,
char *  filepath,
float  screen_gamma,
int  mipmap
 

int grPruneTree ssgEntity *  start,
bool  init
 

void grShutdownState void   ) 
 

ssgState* grSsgEnvTexState char *  img  ) 
 

ssgState* grSsgLoadTexState char *  img  ) 
 

ssgState* grSsgLoadTexStateEx char *  img,
char *  filepath,
int  wrap,
int  mipmap
 

void grWriteTime float *  color,
int  font,
int  x,
int  y,
tdble  sec,
int  sgn
 


Variable Documentation

char* grFilePath
 

float grGammaValue
 

int grMipMap
 

char* grTexturePath
 


Generated at Thu Feb 26 21:53:22 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.