Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 27, 2006, 11:25:43 PM (18 years ago)
Author:
bensch
Message:

renamed NewResource to Resource

Location:
branches/new_class_id/src/lib/graphics/importer
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/md2/resource_md2.cc

    r9825 r9847  
    77
    88ResourceMD2::ResourceMD2(const std::string& modelName, const std::string& skinName, float scale)
    9     : NewResource(&ResourceMD2::type)
     9    : Resource(&ResourceMD2::type)
    1010{
    1111  Resources::StorePointer* ptr = this->acquireResource(loadString(modelName, skinName, scale));
     
    1919  {
    2020    PRINTF(0)("NOT FOUND MD2: %s\n", modelName.c_str());
    21     std::string modelFileName = this->NewResource::locateFile(modelName);
    22     //std::string skinFileName = this->NewResource::locateFile(skinName);
     21    std::string modelFileName = this->Resource::locateFile(modelName);
     22    //std::string skinFileName = this->Resource::locateFile(skinName);
    2323    this->MD2Model::load(modelFileName, skinName, scale);
    24     this->NewResource::addResource(new ResourceMD2::MD2ResourcePointer(loadString(modelName, skinName, scale), Resources::KeepLevel(0), this->MD2Model::dataPointer()));
     24    this->Resource::addResource(new ResourceMD2::MD2ResourcePointer(loadString(modelName, skinName, scale), Resources::KeepLevel(0), this->MD2Model::dataPointer()));
    2525  }
    2626
  • branches/new_class_id/src/lib/graphics/importer/md2/resource_md2.h

    r9846 r9847  
    1212
    1313
    14 class ResourceMD2 : public MD2Model, public Resources::NewResource
     14class ResourceMD2 : public MD2Model, public Resources::Resource
    1515{
    1616public:
  • branches/new_class_id/src/lib/graphics/importer/resource_obj.cc

    r9831 r9847  
    77
    88ResourceOBJ::ResourceOBJ(const std::string& imageName, float scaling)
    9     : NewResource(&ResourceOBJ::type)
     9    : Resource(&ResourceOBJ::type)
    1010{
    1111  Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + MultiType(scaling).getString());
     
    1919  {
    2020    PRINTF(5)("NOT FOUND OBJ: %s\n", imageName.c_str());
    21     std::string fileName = this->NewResource::locateFile(imageName);
     21    std::string fileName = this->Resource::locateFile(imageName);
    2222    this->acquireData(OBJModel(fileName, scaling).dataPointer());
    23     this->NewResource::addResource(new ResourceOBJ::OBJResourcePointer(imageName + ',' + MultiType(scaling).getString(), Resources::KeepLevel(0), this->StaticModel::dataPointer()));
     23    this->Resource::addResource(new ResourceOBJ::OBJResourcePointer(imageName + ',' + MultiType(scaling).getString(), Resources::KeepLevel(0), this->StaticModel::dataPointer()));
    2424  }
    2525}
  • branches/new_class_id/src/lib/graphics/importer/resource_obj.h

    r9846 r9847  
    1111#include "objModel.h"
    1212
    13 class ResourceOBJ : public StaticModel, public Resources::NewResource
     13class ResourceOBJ : public StaticModel, public Resources::Resource
    1414{
    1515public:
  • branches/new_class_id/src/lib/graphics/importer/resource_texture.cc

    r9842 r9847  
    77
    88ResourceTexture::ResourceTexture(const std::string& imageName, GLenum target)
    9     : NewResource(&ResourceTexture::type)
     9    : Resource(&ResourceTexture::type)
    1010{
    1111  Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + MultiType((int)target).getString());
     
    1919  {
    2020    PRINTF(5)("NOT FOUND TEXTURE: %s\n", imageName.c_str());
    21     std::string fileName = this->NewResource::locateFile(imageName);
     21    std::string fileName = this->Resource::locateFile(imageName);
    2222    this->Texture::loadImage(fileName, target);
    23     this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + MultiType((int)target).getString(), Resources::KeepLevel(0), this->Texture::dataPointer()));
     23    this->Resource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + MultiType((int)target).getString(), Resources::KeepLevel(0), this->Texture::dataPointer()));
    2424  }
    2525}
  • branches/new_class_id/src/lib/graphics/importer/resource_texture.h

    r9846 r9847  
    1212
    1313
    14 class ResourceTexture : public Texture, public Resources::NewResource
     14class ResourceTexture : public Texture, public Resources::Resource
    1515{
    1616public:
Note: See TracChangeset for help on using the changeset viewer.