#include <stdio.h>
#include "grtexture.h"
Go to the source code of this file.
|
| int | grGetFilename (const char *filename, char *filepath, char *buf, const int BUFSIZE) |
| ssgState * | grSsgEnvTexState (const char *img) |
| ssgState * | grSsgLoadTexState (const char *img) |
| ssgState * | grSsgLoadTexStateEx (const char *img, char *filepath, int wrap, int mipmap) |
| 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) |
| void | grRemoveState (char *img) |
◆ DBG_SET_NAME
| #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__); \
}
Definition at line 34 of file grutil.h.
◆ TRACE_GL
Value:{ GLenum rc; if ((rc = glGetError()) != GL_NO_ERROR) printf("%s %s\n", msg, gluErrorString(rc)); }
Definition at line 28 of file grutil.h.
◆ grGetFilename()
| int grGetFilename |
( |
const char * | filename, |
|
|
char * | filepath, |
|
|
char * | buf, |
|
|
const int | BUFSIZE ) |
|
extern |
◆ grGetHOT()
| float grGetHOT |
( |
float | x, |
|
|
float | y ) |
|
extern |
◆ grLoadPngTexture()
| bool grLoadPngTexture |
( |
const char * | fname, |
|
|
ssgTextureInfo * | info ) |
|
extern |
◆ grRemoveState()
| void grRemoveState |
( |
char * | img | ) |
|
◆ grShutdownState()
| void grShutdownState |
( |
void | | ) |
|
|
extern |
◆ grSsgEnvTexState()
| ssgState * grSsgEnvTexState |
( |
const char * | img | ) |
|
◆ grSsgLoadTexState()
| ssgState * grSsgLoadTexState |
( |
const char * | img | ) |
|
|
extern |
◆ grSsgLoadTexStateEx()
| ssgState * grSsgLoadTexStateEx |
( |
const char * | img, |
|
|
char * | filepath, |
|
|
int | wrap, |
|
|
int | mipmap ) |
|
extern |
◆ grWriteTime()
| void grWriteTime |
( |
float * | color, |
|
|
int | font, |
|
|
int | x, |
|
|
int | y, |
|
|
tdble | sec, |
|
|
int | sgn ) |
|
extern |
◆ grFilePath
◆ grGammaValue
◆ grMipMap
◆ grTexturePath