Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9788 in orxonox.OLD for branches/new_class_id/src/lib/graphics


Ignore:
Timestamp:
Sep 22, 2006, 6:55:52 PM (18 years ago)
Author:
bensch
Message:

renaming for namespace-purposes

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  
    66
    77ResourceTexture::ResourceTexture(const std::string& imageName, GLenum target)
    8     : Resource(&ResourceTexture::type)
     8    : NewResource(&ResourceTexture::type)
    99{
    10   Resource::Pointer* ptr = this->acquireResource(imageName + ',' + "TEST");
     10  NewResource::Pointer* ptr = this->acquireResource(imageName + ',' + "TEST");
    1111
    1212  if (ptr)
     
    1818  {
    1919    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);
    2121    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()));
    2323  }
    2424}
    2525
    2626
    27 Resource::Type ResourceTexture::type(Texture::staticClassID());
     27NewResource::Type ResourceTexture::type(Texture::staticClassID());
    2828
    2929
     
    3131
    3232
    33 ResourceTexture::TextureResourcePointer::TextureResourcePointer(const std::string& loadString, const Resource::KeepLevel& keepLevel, const TextureData::Pointer& data)
    34     : Resource::Pointer(loadString, keepLevel) , pointer(data)
     33ResourceTexture::TextureResourcePointer::TextureResourcePointer(const std::string& loadString, const NewResource::KeepLevel& keepLevel, const TextureData::Pointer& data)
     34    : NewResource::Pointer(loadString, keepLevel) , pointer(data)
    3535{}
    3636
  • branches/new_class_id/src/lib/graphics/importer/resource_texture.h

    r9785 r9788  
    1212
    1313
    14 class ResourceTexture : public Texture, public Resource
     14class ResourceTexture : public Texture, public NewResource
    1515{
    1616public:
     
    1919
    2020private:
    21 class TextureResourcePointer : public Resource::Pointer
     21class TextureResourcePointer : public NewResource::Pointer
    2222  {
    2323  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);
    2525    inline const TextureData::Pointer& ptr() const { return pointer; }
    2626  private:
     
    2929
    3030private:
    31   static Resource::Type type;
     31  static NewResource::Type type;
    3232};
    3333
Note: See TracChangeset for help on using the changeset viewer.