X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_dyntexture.h;h=130dc16704bb2a4b0ea70c68118c482f010ad409;hb=98b5c5bdb76e2a329ca27b2a91b935dad3747722;hp=c513ab1262036ca2995d23752e3a92eb31141737;hpb=598278f9f54f296bf415bc8cf4435ca7b90b052d;p=xonotic%2Fdarkplaces.git diff --git a/cl_dyntexture.h b/cl_dyntexture.h index c513ab12..130dc167 100644 --- a/cl_dyntexture.h +++ b/cl_dyntexture.h @@ -1,18 +1,20 @@ -// Andreas 'Black' Kirsch 07 -#ifndef CL_DYNTEXTURE_H -#define CL_DYNTEXTURE_H - -#define DYNAMIC_TEXTURE_PATH_PREFIX "_dynamic/" -#define MAX_DYNAMIC_TEXTURE_COUNT 64 - -// return a valid texture handle for a dynamic texture (might be filler texture if it hasnt been initialized yet) -// textureflags will be ignored though for now [11/22/2007 Black] -rtexture_t * CL_GetDynTexture( const char *name ); - -// link a texture handle as dynamic texture and update texture handles in the renderer and draw_* accordingly -void CL_LinkDynTexture( const char *name, rtexture_t *texture ); - -// unlink a texture handle from its name -void CL_UnlinkDynTexture( const char *name ); - -#endif \ No newline at end of file +// Andreas 'Black' Kirsch 07 +#ifndef CL_DYNTEXTURE_H +#define CL_DYNTEXTURE_H + +#define CLDYNTEXTUREPREFIX "_dynamic/" + +// always path fully specified names to the dynamic texture functions! (ie. with the _dynamic/ prefix, etc.!) + +// return a valid texture handle for a dynamic texture (might be filler texture if it hasnt been initialized yet) +// or NULL if its not a valid dynamic texture name +rtexture_t * CL_GetDynTexture( const char *name ); + +// link a texture handle as dynamic texture and update texture handles in the renderer and draw_* accordingly +void CL_LinkDynTexture( const char *name, rtexture_t *texture ); + +// unlink a texture handle from its name +void CL_UnlinkDynTexture( const char *name ); + +#endif +