// 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
{
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
+