Changeset 6009 in orxonox.OLD for trunk/src/lib/graphics/importer/abstract_model.cc
- Timestamp:
- Dec 10, 2005, 4:07:04 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/abstract_model.cc
r6006 r6009 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_MODEL 17 17 18 #include " proto_class.h"18 #include "abstract_model.h" 19 19 20 20 using namespace std; … … 25 25 * @todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass()27 AbstractModel::AbstractModel() 28 28 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 29 // this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 this->pModelInfo.numVertices = 0; 31 this->pModelInfo.numTriangles = 0; 32 this->pModelInfo.numTexCoor = 0; 30 33 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 34 this->pModelInfo.pVertices = NULL; 35 this->pModelInfo.pTriangles = NULL; 36 this->pModelInfo.pNormals = NULL; 37 this->pModelInfo.pTexCoor = NULL; 41 38 } 42 39 … … 45 42 * standard deconstructor 46 43 */ 47 ProtoClass::~ProtoClass()44 AbstractModel::~AbstractModel() 48 45 { 49 46 // delete what has to be deleted here
Note: See TracChangeset
for help on using the changeset viewer.