Changeset 9684 in orxonox.OLD for branches/new_class_id/src/lib/graphics
- Timestamp:
- Aug 22, 2006, 1:34:31 AM (18 years ago)
- Location:
- branches/new_class_id/src/lib/graphics/importer
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/height_map.cc
r8316 r9684 327 327 328 328 329 NewObjectListDefinition(HeightMap); 329 330 330 331 … … 413 414 void HeightMap::init(const std::string& heightMapName) 414 415 { 415 this-> setClassID(CL_HEIGHT_MAP, "HeightMap");416 this->registerObject(this, HeightMap::_objectList); 416 417 417 418 this->shiftX = 0; -
branches/new_class_id/src/lib/graphics/importer/height_map.h
r7526 r9684 29 29 30 30 class SDL_Surface; 31 class Vector;32 31 class Material; 33 class PNode;34 32 class Texture; 35 33 class HeightMap; … … 70 68 71 69 70 72 71 //!< the height map representation itself 73 72 class HeightMap : public VertexArrayModel 74 73 { 74 NewObjectListDeclaration(HeightMap); 75 75 friend class Tile; 76 76 -
branches/new_class_id/src/lib/graphics/importer/interactive_model.cc
r9406 r9684 22 22 23 23 24 NewObjectListDefinition(InteractiveModel); 25 24 26 /** 25 27 * standard constructor … … 28 30 InteractiveModel::InteractiveModel() 29 31 { 30 this-> setClassID(CL_INTERACTIVE_MODEL, "InteractiveModel");32 this->registerObject(this, InteractiveModel::_objectList); 31 33 } 32 34 -
branches/new_class_id/src/lib/graphics/importer/interactive_model.h
r9003 r9684 30 30 class InteractiveModel : public Model 31 31 { 32 NewObjectListDeclaration(InteractiveModel); 32 33 public: 33 34 InteractiveModel(); -
branches/new_class_id/src/lib/graphics/importer/model.cc
r9406 r9684 20 20 #include "glincl.h" 21 21 22 22 NewObjectListDefinition(Model); 23 23 24 24 /** … … 28 28 Model::Model() 29 29 { 30 this-> setClassID(CL_MODEL, "Model");30 this->registerObject(this, Model::_objectList); 31 31 this->pModelInfo.numVertices = 0; 32 32 this->pModelInfo.numTriangles = 0; -
branches/new_class_id/src/lib/graphics/importer/model.h
r8035 r9684 54 54 //! This class defines the basic components of a model 55 55 class Model : virtual public BaseObject { 56 NewObjectListDeclaration(Model); 56 57 57 58 public: -
branches/new_class_id/src/lib/graphics/importer/objModel.cc
r8369 r9684 27 27 #include "compiler.h" 28 28 29 NewObjectListDefinition(OBJModel); 29 30 /** 30 31 * @brief Crates a 3D-Model, loads in a File and scales it. … … 35 36 : StaticModel(fileName) 36 37 { 37 this-> setClassID(CL_OBJ_MODEL, "OBJModel");38 this->registerObject(this, OBJModel::_objectList); 38 39 39 40 this->objPath = "./"; -
branches/new_class_id/src/lib/graphics/importer/objModel.h
r8369 r9684 12 12 class OBJModel : public StaticModel 13 13 { 14 public: 14 NewObjectListDeclaration(OBJModel); 15 public: 15 16 OBJModel(const std::string& fileName, float scaling = 1.0); 16 17 virtual ~OBJModel(); -
branches/new_class_id/src/lib/graphics/importer/static_model.cc
r9406 r9684 129 129 130 130 131 132 131 133 ///////////// 132 134 /// MODEL /// 133 135 ///////////// 136 NewObjectListDefinition(StaticModel); 137 134 138 /** 135 139 * @brief Creates a 3D-Model. … … 139 143 StaticModel::StaticModel(const std::string& modelName) 140 144 { 141 this-> setClassID(CL_STATIC_MODEL, "StaticModel");145 this->registerObject(this, StaticModel::_objectList); 142 146 PRINTF(4)("new 3D-Model is being created\n"); 143 147 this->setName(modelName); -
branches/new_class_id/src/lib/graphics/importer/static_model.h
r7221 r9684 94 94 class StaticModel : public Model 95 95 { 96 public: 96 NewObjectListDeclaration(StaticModel); 97 public: 97 98 StaticModel(const std::string& modelName = ""); 98 99 virtual ~StaticModel(); -
branches/new_class_id/src/lib/graphics/importer/vertex_array_model.cc
r9406 r9684 24 24 25 25 26 NewObjectListDefinition(VertexArrayModel); 26 27 27 28 ///////////// … … 35 36 VertexArrayModel::VertexArrayModel() 36 37 { 37 this-> setClassID(CL_MODEL, "VertexArrayModel");38 this->registerObject(this, VertexArrayModel::_objectList); 38 39 39 40 this->newStripe(); … … 49 50 VertexArrayModel::VertexArrayModel(const Model& model) 50 51 { 51 this-> setClassID(CL_MODEL, "VertexArrayModel");52 this->registerObject(this, VertexArrayModel::_objectList); 52 53 53 54 // importing the data to the new Model. -
branches/new_class_id/src/lib/graphics/importer/vertex_array_model.h
r6769 r9684 27 27 class VertexArrayModel : public Model 28 28 { 29 public: 29 NewObjectListDeclaration(VertexArrayModel); 30 public: 30 31 VertexArrayModel(); 31 32 VertexArrayModel(const Model& model);
Note: See TracChangeset
for help on using the changeset viewer.