Changeset 9788 in orxonox.OLD for branches/new_class_id/src/lib/graphics
- Timestamp:
- Sep 22, 2006, 6:55:52 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/resource_texture.cc
r9786 r9788 6 6 7 7 ResourceTexture::ResourceTexture(const std::string& imageName, GLenum target) 8 : Resource(&ResourceTexture::type)8 : NewResource(&ResourceTexture::type) 9 9 { 10 Resource::Pointer* ptr = this->acquireResource(imageName + ',' + "TEST");10 NewResource::Pointer* ptr = this->acquireResource(imageName + ',' + "TEST"); 11 11 12 12 if (ptr) … … 18 18 { 19 19 printf("NOT FOUNT TEXTURE: %s\n", imageName.c_str()); 20 std::string fileName = this-> Resource::locateFile(imageName);20 std::string fileName = this->NewResource::locateFile(imageName); 21 21 this->Texture::loadImage(fileName, target); 22 this-> Resource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + "TEST", KeepLevel(), this->Texture::dataPointer()));22 this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + "TEST", KeepLevel(), this->Texture::dataPointer())); 23 23 } 24 24 } 25 25 26 26 27 Resource::Type ResourceTexture::type(Texture::staticClassID());27 NewResource::Type ResourceTexture::type(Texture::staticClassID()); 28 28 29 29 … … 31 31 32 32 33 ResourceTexture::TextureResourcePointer::TextureResourcePointer(const std::string& loadString, const Resource::KeepLevel& keepLevel, const TextureData::Pointer& data)34 : Resource::Pointer(loadString, keepLevel) , pointer(data)33 ResourceTexture::TextureResourcePointer::TextureResourcePointer(const std::string& loadString, const NewResource::KeepLevel& keepLevel, const TextureData::Pointer& data) 34 : NewResource::Pointer(loadString, keepLevel) , pointer(data) 35 35 {} 36 36 -
branches/new_class_id/src/lib/graphics/importer/resource_texture.h
r9785 r9788 12 12 13 13 14 class ResourceTexture : public Texture, public Resource14 class ResourceTexture : public Texture, public NewResource 15 15 { 16 16 public: … … 19 19 20 20 private: 21 class TextureResourcePointer : public Resource::Pointer21 class TextureResourcePointer : public NewResource::Pointer 22 22 { 23 23 public: 24 TextureResourcePointer(const std::string& loadString, const Resource::KeepLevel& keepLevel, const TextureData::Pointer& data);24 TextureResourcePointer(const std::string& loadString, const NewResource::KeepLevel& keepLevel, const TextureData::Pointer& data); 25 25 inline const TextureData::Pointer& ptr() const { return pointer; } 26 26 private: … … 29 29 30 30 private: 31 static Resource::Type type;31 static NewResource::Type type; 32 32 }; 33 33
Note: See TracChangeset
for help on using the changeset viewer.