Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/model.h')
-rw-r--r--src/model/model.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/model/model.h b/src/model/model.h
index a33e365..3c94ad6 100644
--- a/src/model/model.h
+++ b/src/model/model.h
@@ -74,11 +74,15 @@ public:
return model_radius;
}
- /// additional model fragment groups
+ /// print information about the model to console
+ void print() const;
+
+ /// model fragment groups
inline Groups & groups() {
return model_groups;
}
+ /// associated collisionmodel
inline CollisionModel *collisionmodel() {
return model_collisionmodel;
}
@@ -191,10 +195,16 @@ public:
return model_registry;
}
- /// get name model, returns 0 if not found
+ /// search the model registry
static Model *find(const std::string & name);
+
+ /// search the model registry for a partial name
+ static Model *search(const std::string & searchname);
- /// get named model from the registry and load it if necessary
+ /**
+ * @brief load a model
+ * If the model has already been loaded, a pointer to the existing instance will be returned
+ * */
static Model *load(const std::string & name);
/// clear the model registry
@@ -203,10 +213,6 @@ public:
/// list the content of the model registry
static void list();
- /// list one model
- static void list_model(Model *model);
-
-
private:
std::string model_name;
Docks model_docks;