2 #define TEXF_ALPHA 1 // transparent
3 #define TEXF_MIPMAP 2 // mipmapped
4 #define TEXF_RGBA 4 // 32bit RGBA, as opposed to 8bit paletted
5 #define TEXF_PRECACHE 8 // upload immediately, otherwise defer loading until it is used (r_textureprecache can override this)
7 // contents of this structure are private to gl_textures.c
8 typedef struct rtexture_s
15 extern rtexture_t *R_LoadTexture (char *identifier, int width, int height, byte *data, int flags);
16 // returns the renderer dependent texture slot number (call this before each use, as a texture might not have been precached)
17 extern int R_GetTexture (rtexture_t *rt);
18 // returns a GL texture slot (only used for lightmaps)
19 extern int R_GetTextureSlots(int count);