X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=draw.h;h=5fe0b8bfbc1e865b7619ffcc2cd78b7c20b671b2;hp=a1896c0123e2b1f07456f1f8e36fd419b7c15d98;hb=6824d8ddc8a43cae0609be5bbe8bee01fa1a4225;hpb=b91033966317d4d6a2a6bdf2952291fc88e3f7c4 diff --git a/draw.h b/draw.h index a1896c01..5fe0b8bf 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, unsigned char *pixels); +// free the texture memory used by a pic +void Draw_FreePic(const char *picname); void R_DrawQueue(void); + +#endif +