00001 #ifndef _OBJLOADER_H_ 00002 #define _OBJLOADER_H_ 00003 00004 #include "FileLoader.h" 00005 #include "Vector3.h" 00006 #include "Vector2.h" 00007 00008 class ObjLoader : public FileLoader 00009 { 00010 public: 00011 ObjLoader(string filename); 00012 virtual ~ObjLoader(); 00013 00014 virtual void load(); 00015 00016 protected: 00017 void parseVertexInfo(); 00018 void parseFaceInfo(); 00019 00020 vector < Vector3 > _tmpFaces; 00021 vector < Vector3 > _tmpNormals; 00022 vector < Vector2 > _tmpTextures; 00023 00024 bool _hasNormal; 00025 bool _hasTexture; 00026 00027 //holds the min and max values 00028 // to determine largest 00029 // collision radius 00030 Vector3 _minCollision; 00031 Vector3 _maxCollision; 00032 }; 00033 #endif