Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

renamed NewResource to Resource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/resource_shader.cc

    r9823 r9847  
    55
    66ResourceShader::ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName)
    7     : NewResource(&ResourceShader::type)
     7    : Resource(&ResourceShader::type)
    88{
    99  Resources::StorePointer* ptr = this->acquireResource(vertexShaderName +','+fragmentShaderName);
     
    1717  {
    1818    PRINTF(5)("NOT FOUND SHADER: %s\n", vertexShaderName.c_str());
    19     std::string vertexFileName = this->NewResource::locateFile(vertexShaderName);
     19    std::string vertexFileName = this->Resource::locateFile(vertexShaderName);
    2020    std::string fragmentFileName;
    2121    if (!fragmentShaderName.empty())
    22       fragmentFileName = this->NewResource::locateFile(fragmentShaderName);
     22      fragmentFileName = this->Resource::locateFile(fragmentShaderName);
    2323
    2424    this->Shader::load(vertexFileName, fragmentFileName);
    25     this->NewResource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, Resources::KeepLevel(0), this->Shader::dataPointer()));
     25    this->Resource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, Resources::KeepLevel(0), this->Shader::dataPointer()));
    2626  }
    2727}
Note: See TracChangeset for help on using the changeset viewer.