]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - r_textures.h
optimized AngleVectors calls (pass NULL for vectors that should not be generated)
[xonotic/darkplaces.git] / r_textures.h
1
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)
6
7 // contents of this structure are private to gl_textures.c
8 typedef struct rtexture_s
9 {
10         int useless;
11 }
12 rtexture_t;
13
14 // uploads a texture
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);