Changeset 9685 in orxonox.OLD for branches/new_class_id/src/lib/graphics/importer
- Timestamp:
- Aug 22, 2006, 1:16:23 PM (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/material.cc
r9406 r9685 27 27 #include "util/loading/resource_manager.h" 28 28 29 NewObjectListDefinition(Material); 30 29 31 /** 30 32 * @brief creates a Material. … … 33 35 Material::Material (const std::string& mtlName) 34 36 { 35 this-> setClassID(CL_MATERIAL, "Material");37 this->registerObject(this, Material::_objectList); 36 38 37 39 this->setIllum(3); -
branches/new_class_id/src/lib/graphics/importer/material.h
r8761 r9685 24 24 class Material : public BaseObject 25 25 { 26 NewObjectListDeclaration(Material); 26 27 public: 27 28 Material (const std::string& mtlName = ""); -
branches/new_class_id/src/lib/graphics/importer/md2/md2Model.cc
r9406 r9685 22 22 23 23 24 24 NewObjectListDefinition(MD2Model); 25 25 26 26 //! the model anorms … … 78 78 MD2Model::MD2Model(const std::string& modelFileName, const std::string& skinFileName, float scale) 79 79 { 80 this-> setClassID(CL_MD2_MODEL, "MD2Model");80 this->registerObject(this, MD2Model::_objectList); 81 81 /* this creates the data container via ressource manager */ 82 82 if (!modelFileName.empty()) -
branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h
r9235 r9685 149 149 //! This is a MD2 Model class 150 150 class MD2Model : public InteractiveModel { 151 151 NewObjectListDeclaration(MD2Model); 152 152 public: 153 153 MD2Model(const std::string& modelFileName, const std::string& skinFileName = "", float scale = 1.0f); -
branches/new_class_id/src/lib/graphics/importer/media_container.cc
r8316 r9685 30 30 #include "debug.h" 31 31 32 NewObjectListDefinition(MediaContainer); 32 33 33 34 /** … … 37 38 { 38 39 // set the class id for the base object 39 this-> setClassID(CL_MEDIA_CONTAINER, "MediaContainer");40 this->registerObject(this, MediaContainer::_objectList); 40 41 41 42 fps = 0; -
branches/new_class_id/src/lib/graphics/importer/media_container.h
r7221 r9685 24 24 class MediaContainer : public TextureSequence 25 25 { 26 26 NewObjectListDeclaration(MediaContainer); 27 27 private: 28 28 -
branches/new_class_id/src/lib/graphics/importer/movie_player.cc
r7221 r9685 30 30 #include "debug.h" 31 31 32 NewObjectListDefinition(MoviePlayer); 32 33 33 34 MoviePlayer::MoviePlayer(const std::string& filename) 34 35 { 35 36 // set the class id for the base object 36 this->setClassID(CL_MOVIE_PLAYER, "MoviePlayer"); 37 37 this->registerObject(this, MoviePlayer::_objectList); 38 38 status = STOP; 39 39 timer = 0; -
branches/new_class_id/src/lib/graphics/importer/movie_player.h
r7221 r9685 31 31 class MoviePlayer : public BaseObject 32 32 { 33 NewObjectListDeclaration(MoviePlayer); 33 34 34 35 private: -
branches/new_class_id/src/lib/graphics/importer/texture.cc
r9406 r9685 64 64 #endif 65 65 66 66 NewObjectListDefinition(Texture); 67 67 68 68 /** … … 86 86 : data(texture.data) 87 87 { 88 this-> setClassID(CL_TEXTURE, "Texture");88 this->registerObject(this, Texture::_objectList); 89 89 this->priority = 0.5; 90 90 } … … 149 149 void Texture::init() 150 150 { 151 this-> setClassID(CL_TEXTURE, "Texture");151 this->registerObject(this, Texture::_objectList); 152 152 153 153 this->data = TextureDataPointer(new TextureData()); -
branches/new_class_id/src/lib/graphics/importer/texture.h
r8761 r9685 20 20 class Texture : public BaseObject 21 21 { 22 NewObjectListDeclaration(Texture); 22 23 public: 23 24 Texture(); -
branches/new_class_id/src/lib/graphics/importer/texture_sequence.cc
r9406 r9685 28 28 #endif 29 29 30 NewObjectListDefinition(TextureSequence); 31 30 32 /** 31 33 * @brief Constructor for a Texture … … 33 35 TextureSequence::TextureSequence(unsigned int count, ...) 34 36 { 35 this-> setClassID(CL_TEXTURE_SEQUENCE, "TextureSequence");37 this->registerObject(this, TextureSequence::_objectList); 36 38 37 39 va_list textureNameList; … … 54 56 TextureSequence::TextureSequence(const std::vector<std::string>& textureNames, const std::string& prependFolder) 55 57 { 56 this-> setClassID(CL_TEXTURE_SEQUENCE, "TextureSequence");58 this->registerObject(this, TextureSequence::_objectList); 57 59 this->loadImageSeries(textureNames, prependFolder); 58 60 } -
branches/new_class_id/src/lib/graphics/importer/texture_sequence.h
r8324 r9685 15 15 class TextureSequence : public Texture 16 16 { 17 NewObjectListDeclaration(TextureSequence); 17 18 public: 18 19 TextureSequence(unsigned int count = 0, ...);
Note: See TracChangeset
for help on using the changeset viewer.