From 62de0496836e729ff955274cf153914709775bfb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 15 Aug 2008 13:05:58 +0000 Subject: func_group support --- src/model/map.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/model/map.h') diff --git a/src/model/map.h b/src/model/map.h index afe925b..5137e6c 100644 --- a/src/model/map.h +++ b/src/model/map.h @@ -63,7 +63,16 @@ private: /// true if the last read line contained a new classname bool got_classname() const; + + /// true if the last read line contained a class closing bracket + inline bool got_classend() const + { + return last_read_was_classend; + } + /// true if the last read line contained the closing bracket for the requested class + bool got_classend(const char*) const; + /// true if the last read line contained a new classname bool got_classname(const char*) const; @@ -117,9 +126,12 @@ private: /// generate triangles for one plane in the plane list void make_brushface(Plane *face); - /// load parsed primitives into Model Fragments - void load_fragments(Model *model); - + /// load parsed primitives into model worldspawn + void load_worldspawn(Model *model); + + /// load parsed primitives into a FragmentGroup + void load_fragmentgroup(Model *model, FragmentGroup &group); + /// clear the current list of per-material geometry void clear_materials(); @@ -132,6 +144,7 @@ private: bool last_read_was_key; bool last_read_was_classname; + bool last_read_was_classend; unsigned int map_brushes; unsigned int map_faces; @@ -144,6 +157,8 @@ private: math::Vector3f class_maxbbox; math::Vector3f class_minbbox; + + math::Vector3f map_center; Materials map_materials; }; -- cgit v1.2.3