X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=draw.h;h=61d50af9a1186cd0c6cc0a5b9053f0a049c353e3;hb=0cc298d3c03cc31166905b782f9f6545f8eee742;hp=a1896c0123e2b1f07456f1f8e36fd419b7c15d98;hpb=b91033966317d4d6a2a6bdf2952291fc88e3f7c4;p=xonotic%2Fdarkplaces.git diff --git a/draw.h b/draw.h index a1896c01..61d50af9 100644 --- a/draw.h +++ b/draw.h @@ -21,6 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // draw.h -- these are the only functions outside the refresh allowed // to touch the vid buffer +#ifndef DRAW_H +#define DRAW_H + // FIXME: move this stuff to cl_screen typedef struct cachepic_s { @@ -36,6 +39,13 @@ typedef struct cachepic_s cachepic_t; void Draw_Init (void); -cachepic_t *Draw_CachePic (char *path); +cachepic_t *Draw_CachePic (const char *path, qboolean persistent); +// create or update a pic's image +cachepic_t *Draw_NewPic(const char *picname, int width, int height, int alpha, qbyte *pixels); +// free the texture memory used by a pic +void Draw_FreePic(const char *picname); void R_DrawQueue(void); + +#endif +