]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
experimental feature to load the alpha channel of foo.jpg from foo_alpha.jpg (JPEG...
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index f0af80c681ea45f94268de39a2ca798bfddbd72d..e3651266f3cafb7b30de8b13bc2be7b29d9022b1 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -29,6 +29,12 @@ typedef struct cachepic_s
 {
        // size of pic
        int width, height;
+       // this flag indicates that it should be loaded and unloaded on demand
+       int autoload;
+       // texture flags to upload with
+       int texflags;
+       // texture may be freed after a while
+       int lastusedframe;
        // renderer texture to use
        rtexture_t *tex;
        // used for hash lookups
@@ -48,6 +54,7 @@ typedef enum cachepicflags_e
 cachepicflags_t;
 
 void Draw_Init (void);
+void Draw_Frame (void);
 cachepic_t *Draw_CachePic_Flags (const char *path, unsigned int cachepicflags);
 cachepic_t *Draw_CachePic (const char *path); // standard function with no options, used throughout engine
 // create or update a pic's image
@@ -64,6 +71,7 @@ typedef struct drawqueuemesh_s
        rtexture_t *texture;
        int num_triangles;
        int num_vertices;
+       int *data_element3i;
        unsigned short *data_element3s;
        float *data_vertex3f;
        float *data_texcoord2f;