]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
added radius and radius2 (squared radius) fields to model structure
[xonotic/darkplaces.git] / model_shared.h
index 9d4c30478a17fb4358f340a1beab6668eb5bdf01..c58b238366107190284b47069823af4f2e58e0f8 100644 (file)
@@ -110,8 +110,10 @@ typedef struct model_s
        vec3_t                  yawmins, yawmaxs;
        // bounding box if pitch or roll are used
        vec3_t                  rotatedmins, rotatedmaxs;
-       // usable at any angles
-//     float                   modelradius;
+       // sphere radius, usable at any angles
+       float                   radius;
+       // squared sphere radius for easier comparisons
+       float                   radius2;
 
        // brush model specific
        int                             firstmodelsurface, nummodelsurfaces;
@@ -198,8 +200,8 @@ typedef struct model_s
        void(*Draw)(struct entity_render_s *ent);
        // draw the model's sky polygons (only used by brush models)
        void(*DrawSky)(struct entity_render_s *ent);
-       // draw the model's shadows
-       void(*DrawShadow)(struct entity_render_s *ent);
+       // draw a fake shadow for the model
+       void(*DrawFakeShadow)(struct entity_render_s *ent);
 
        // memory pool for allocations
        mempool_t               *mempool;