]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
needed one more prototype
[xonotic/darkplaces.git] / model_shared.h
index 4fb9af4fcb59ed3f0ef616aa950fa0c13463070f..011d53ff540d5a22807482e85ff9b04ab3a9311a 100644 (file)
@@ -186,6 +186,7 @@ typedef struct model_s
        float                   *mdlmd2data_texcoords;
        md2frame_t              *mdlmd2data_frames;
        trivertx_t              *mdlmd2data_pose;
+       int                             *mdlmd2data_triangleneighbors;
 
        // for Zymotic models
        void                    *zymdata_header;
@@ -197,8 +198,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;
@@ -230,9 +231,13 @@ void Mod_UnloadModel (model_t *mod);
 
 void Mod_ClearUsed(void);
 void Mod_PurgeUnused(void);
+void Mod_LoadModels(void);
 
 extern model_t *loadmodel;
 extern char loadname[32];      // for hunk tags
 
+int Mod_FindTriangleWithEdge(int *elements, int numtriangles, int start, int end);
+void Mod_BuildTriangleNeighbors(int *neighbors, int *elements, int numtriangles);
+
 #endif // __MODEL__