Changeset 9842 in orxonox.OLD for branches/new_class_id/src/lib/graphics/importer
- Timestamp:
- Sep 26, 2006, 7:01:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/resource_texture.cc
r9831 r9842 9 9 : NewResource(&ResourceTexture::type) 10 10 { 11 Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + "TEST");11 Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + MultiType((int)target).getString()); 12 12 13 13 if (ptr) … … 21 21 std::string fileName = this->NewResource::locateFile(imageName); 22 22 this->Texture::loadImage(fileName, target); 23 this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + "TEST", Resources::KeepLevel(0), this->Texture::dataPointer()));23 this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + MultiType((int)target).getString(), Resources::KeepLevel(0), this->Texture::dataPointer())); 24 24 } 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.