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