]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
improved pr_fields command to list how many entities are using each entity field...
[xonotic/darkplaces.git] / model_brush.h
index 05d810587e93b427459b0ffcb8523b64b8e963af..fdc69165e7ec50614a0c04f36a331799318ad88f 100644 (file)
@@ -176,6 +176,8 @@ typedef struct msurface_s
        // no texcoord info (that can be generated from these)
        int                     poly_numverts;
        float           *poly_verts;
+       // the center is useful for sorting
+       float           poly_center[3];
 
        // these are regenerated every frame
        // lighting info
@@ -204,10 +206,11 @@ msurface_t;
 #define SHADERSTAGE_NORMAL 1
 #define SHADERSTAGE_COUNT 2
 
+struct entity_render_s;
 // change this stuff when real shaders are added
 typedef struct Cshader_s
 {
-       void (*shaderfunc[SHADERSTAGE_COUNT])(msurface_t *firstsurf);
+       void (*shaderfunc[SHADERSTAGE_COUNT])(const struct entity_render_s *ent, const msurface_t *firstsurf);
        // list of surfaces using this shader (used during surface rendering)
        msurface_t *chain;
 }