X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=r_textures.h;h=503163f86a78be9d99b3a75472bfe51accdc8a95;hb=382db72f9143ab63a34070dc05f9b90aafccc8d0;hp=edd7d9e58a5d5db72434ecc62e832e5daba965a8;hpb=4ba615858bc88fb2467a16c97126462d4dfc3b53;p=xonotic%2Fdarkplaces.git diff --git a/r_textures.h b/r_textures.h index edd7d9e5..503163f8 100644 --- a/r_textures.h +++ b/r_textures.h @@ -6,10 +6,6 @@ #define TEXF_ALPHA 0x00000001 // mipmapped #define TEXF_MIPMAP 0x00000002 -// upload if r_textureprecache >= 1, otherwise defer loading until it is used -#define TEXF_PRECACHE 0x00000004 -// upload immediately, never defer (ignore r_textureprecache) -#define TEXF_ALWAYSPRECACHE 0x00000008 // indicates texture coordinates should be clamped rather than wrapping #define TEXF_CLAMP 0x00000020 // indicates texture should be uploaded using GL_NEAREST or GL_NEAREST_MIPMAP_NEAREST mode @@ -20,7 +16,7 @@ #define TEXF_PICMIP 0x00000100 // indicates texture should be compressed if possible #define TEXF_COMPRESS 0x00000200 -// use this flag to block R_PurgeTexture from freeing a texture +// use this flag to block R_PurgeTexture from freeing a texture (only used by r_texture_white and similar which may be used in skinframe_t) #define TEXF_PERSISTENT 0x00000400 // indicates texture should use GL_COMPARE_R_TO_TEXTURE mode #define TEXF_COMPARE 0x00000800 @@ -43,6 +39,8 @@ typedef enum textype_e TEXTYPE_BGRA, // 16bit D16 (16bit depth) or 32bit S8D24 (24bit depth, 8bit stencil unused) TEXTYPE_SHADOWMAP, + // 8bit ALPHA (used for freetype fonts) + TEXTYPE_ALPHA, } textype_t;