Changeset 5995 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Dec 9, 2005, 11:26:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r5994 r5995 10 10 11 11 #include "glincl.h" 12 #include <vector> 12 13 13 14 // FORWARD DECLARATION … … 29 30 void loadParams(const TiXmlElement* root); 30 31 31 void loadModel(const char* fileName, float scaling = 1.0f );32 void loadModel(const char* fileName, float scaling = 1.0f, unsigned int modelNumber = 0); 32 33 void setModel(Model* model, unsigned int modelNumber = 0); 33 Model* getModel(unsigned int modelNumber = 0) const { return this->model; };34 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; 34 35 35 36 bool buildObbTree(unsigned int depth); … … 65 66 66 67 private: 67 Model* model; //!< The model that should be loaded for this entity.68 std::vector<Model*> models; //!< The model that should be loaded for this entity. 68 69 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection 69 70
Note: See TracChangeset
for help on using the changeset viewer.