Compounds | |
struct | texture |
struct | tgafile |
struct | tgaheader |
Defines | |
#define | fs '/' |
#define | fs2 '\\' |
#define | xdelta (1.0/1024.0) |
#define | ydelta (-1.0/256.0) |
Functions | |
void | glerr (char *x) |
char * | b_strncpy (char *dest, const char *source, size_t count) |
char * | b_strncat (char *dest, const char *source, size_t count) |
int | fsize (const char *f) |
FILE * | fopen2 (const char *s1, const char *s2, const char *m, uint *filesize) |
int | fs_loadfile (void **out, const char *name) |
void | gl_loadtex (int num, int bpp, int x, int y, void *tex) |
void | gl_loadtgatex (int num, tgafile *tex) |
void | fs_rgbfix (tgafile *t) |
void | fs_alphafix (tgafile *t) |
tgafile * | fs_loadtgafile (const char *name) |
void | fs_failsafe_texture (texture *tex) |
void * | malloc0 (size_t t) |
texture * | fs_loadtexture (const char *name) |
texture * | fs_3dtexture (GLuint idtex) |
void | glchar (int c) |
void | gltext (const char *s) |
void | gltext_at (const char *s, float x, float y) |
Variables | |
texture * | failsafetex |
texture * | tex_font |
float | fontsizex = 12 |
float | fontsizey = 16 |
|
|
|
|
|
|
|
|
|
jako strncat, ale pocet znaku je omezeni delky retezce celkem, vcetne NULL znaku, ne jen pridavaneho retezce |
|
jako strncpy, ale posledni znak vzdy nastavi na NULL |
|
otevre soubor a vrati jeho velikost |
|
Vytvori 3d texturu |
|
Spravi transparenci u textur. Pokud je vsude 0, tak ji nastavi vsude na 255 |
|
vyrobi "defaultni" hnusnou texturu, ktera je pouzita kdyz textura chybi/nelze nahrat Je to tam aby to kvuli tomu nesletelo, ale textura je tak hnusna, ze toho ze tam chybi si asi kazdy hned vsimne |
|
nahraje soubor do pameti, vrati velikost |
|
Nahraje texturu. Zvlada pouze TGA. Vrati jeji ID |
|
nahraje tga texturu, vratin na ni pointer nebo NULL pri neuspechu |
|
Targy jsou v BGR misto RGB ... tohle je zkonvertuje do spravneho formatu |
|
vrati velikost souboru |
|
nahraje texturu z pameti do pameti graficke karty, k texture navic vyrobi mipmapy |
|
nahraje texturu v pameti v .tga formatu do pameti graficke karty. Detaily viz loadtex |
|
vyplivne na obrazovku jeden znak a posune matici |
|
debugging routine to write opengl errors |
|
vyplivne na obrazovky retezec, rozeznama znak newline |
|
vyplivne text na obrazovce posunuty o zadane souradnice |
|
naalokuje pamet a vyplni nulama. Vrati 0 pri selhani |
|
|
|
|
|
|
|
|