]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
fix interpretation of text brightness/contrast cvars when a color multiplier is set
[xonotic/darkplaces.git] / model_shared.h
index 9fcfff2512c982351a8432760c2a94ac45dbc177..7bf5e0207a972c4d37b23c5c3bfa031d2920b71b 100644 (file)
@@ -70,6 +70,8 @@ typedef struct skinframe_s
        int loadsequence;
        // on 32bit systems this makes the struct 128 bytes long
        int padding;
+       // average texture color, if applicable
+       float avgcolor[4];
 }
 skinframe_t;
 
@@ -287,6 +289,7 @@ typedef enum q3tcmod_e
        Q3TCMOD_STRETCH,
        Q3TCMOD_TRANSFORM,
        Q3TCMOD_TURBULENT,
+       Q3TCMOD_PAGE,
        Q3TCMOD_COUNT
 }
 q3tcmod_t;
@@ -775,6 +778,9 @@ typedef struct model_brushq3_s
        // true if the detected deluxemaps are the modelspace kind, rather than
        // the faster tangentspace kind
        qboolean deluxemapping_modelspace;
+       // size of lightmaps (128 by default, but may be another poweroftwo if
+       // external lightmaps are used (q3map2 -lightmapsize)
+       int lightmapsize;
 }
 model_brushq3_t;