reworked lighting uniforms
[carveJwlIkooP6JGAAIwe30JlM.git] / model.h
diff --git a/model.h b/model.h
index 7194689899615b36a516715b655168bec5e203fc..430ed26d7425d684670bddeb0931a9b9b45039de 100644 (file)
--- a/model.h
+++ b/model.h
@@ -36,11 +36,18 @@ struct submodel
    char material[32];
 };
 
+struct classtype_gate
+{
+   u32 target;
+};
+
 struct model_marker
 {
    v3f co;
    v4f q;
    v3f s;
+   u32 classtype;
+   u32 offset;
    char name[32];
 };
 
@@ -147,6 +154,12 @@ static u32 *submodel_indice_data( model *mdl, submodel *sub )
    return model_indice_base(mdl) + sub->indice_start;
 }
 
+static void *get_entdata_raw( model *mdl, model_marker *marker )
+{
+   return ((void *)(model_indice_base(mdl) + mdl->indice_count)) + 
+      marker->offset;
+}
+
 static submodel *submodel_get( model *mdl, const char *name )
 {
    for( int i=0; i<mdl->layer_count; i++ )