]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - cl_dyntexture.h
fix a compile error in my last edit for OSX
[xonotic/darkplaces.git] / cl_dyntexture.h
1 // Andreas 'Black' Kirsch 07
2 #ifndef CL_DYNTEXTURE_H
3 #define CL_DYNTEXTURE_H
4
5 #define CLDYNTEXTUREPREFIX                      "_dynamic/"
6
7 // always path fully specified names to the dynamic texture functions! (ie. with the _dynamic/ prefix, etc.!)
8
9 // return a valid texture handle for a dynamic texture (might be filler texture if it hasnt been initialized yet)
10 // or NULL if its not a valid dynamic texture name
11 rtexture_t * CL_GetDynTexture( const char *name );
12
13 // link a texture handle as dynamic texture and update texture handles in the renderer and draw_* accordingly
14 void CL_LinkDynTexture( const char *name, rtexture_t *texture );
15
16 // unlink a texture handle from its name
17 void CL_UnlinkDynTexture( const char *name );
18
19 #endif
20