00001 #ifndef __MODELS_H__ 00002 #define __MODELS_H__ 00003 00004 #include <string> 00005 #include <map> 00006 #include <ngl/Obj.h> 00007 00017 00018 class Models 00019 { 00020 public : 00022 Models(){;} 00025 ~Models(); 00029 void addModel( 00030 const std::string &_name, 00031 const std::string &_mesh 00032 ); 00037 void addModel( 00038 const std::string &_name, 00039 const std::string &_mesh, 00040 const std::string &_texture 00041 ); 00044 ngl::Obj *getModel(std::string _name); 00048 void draw(std::string _name) const; 00049 private : 00051 std::map <std::string, ngl::Obj *>m_models; 00052 00053 }; 00054 00055 00056 #endif