From bbd04914749b2e3918796fe331daf649b06163ea Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 9 Aug 2009 21:11:55 +0000 Subject: adds r_normals cvar, read normals from .ase models --- src/model/asefile.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/model/asefile.h') diff --git a/src/model/asefile.h b/src/model/asefile.h index bb731b7..7f5ab03 100644 --- a/src/model/asefile.h +++ b/src/model/asefile.h @@ -10,6 +10,7 @@ #include "math/vector3f.h" #include "model/model.h" +#include "model/triangle.h" #include "filesystem/filestream.h" #include @@ -31,11 +32,18 @@ public: private: - typedef std::map VertexList; + typedef std::map VertexList; + + typedef std::map FaceList; ASEFile(std::string const &name); ~ASEFile(); + /** + * @brief read *MESH_NORMALS + */ + bool read_mesh_normals(std::istream &is); + /** * @brief read *MESH_FACE_LIST */ @@ -76,13 +84,11 @@ private: VertexList ase_vertexlist; + FaceList ase_facelist; + math::Vector3f ase_maxbbox; math::Vector3f ase_minbbox; - - math::Vector3f ase_center; - - Model *model; }; } // namespace model -- cgit v1.2.3