]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
forgot to commit these
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index a1896c0123e2b1f07456f1f8e36fd419b7c15d98..bbf5a21be98e1155d633a4e416e8a483f1f2e899 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
 
+#ifndef DRAW_H
+#define DRAW_H
+
 // FIXME: move this stuff to cl_screen
 typedef struct cachepic_s
 {
@@ -37,5 +40,12 @@ cachepic_t;
 
 void Draw_Init (void);
 cachepic_t *Draw_CachePic (char *path);
+// create or update a pic's image
+cachepic_t *Draw_NewPic(char *picname, int width, int height, int alpha, qbyte *pixels);
+// free the texture memory used by a pic
+void Draw_FreePic(char *picname);
 
 void R_DrawQueue(void);
+
+#endif
+