]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
eliminated qbyte type, now uses unsigned char throughout the engine for this purpose
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index a1896c0123e2b1f07456f1f8e36fd419b7c15d98..5fe0b8bfbc1e865b7619ffcc2cd78b7c20b671b2 100644 (file)
--- 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
 
 // 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
 {
 // 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;
 
 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);
 
 void R_DrawQueue(void);
+
+#endif
+