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/text_engine
Files:
2 edited

Legend:

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

    r9839 r9847  
    77
    88ResourceFont::ResourceFont(const std::string& fontName, unsigned int renderSize)
    9   : Font(), NewResource(&ResourceFont::type)
     9  : Font(), Resource(&ResourceFont::type)
    1010{
    1111  assert(!fontName.empty());
     
    2020  {
    2121    PRINTF(5)("NOT FOUND FONT: %s\n", fontName.c_str());
    22     std::string fileName = this->NewResource::locateFile(fontName);
     22    std::string fileName = this->Resource::locateFile(fontName);
    2323
    2424    printf("FONTFILE %s TO %s\n", fontName.c_str(), fileName.c_str());
    2525
    2626    this->Font::loadFontFromTTF(fileName, renderSize);
    27     this->NewResource::addResource(new ResourceFont::FontResourcePointer(fontName + ',' + MultiType((int)renderSize).getString(), Resources::KeepLevel(0), this->Font::dataPointer()));
     27    this->Resource::addResource(new ResourceFont::FontResourcePointer(fontName + ',' + MultiType((int)renderSize).getString(), Resources::KeepLevel(0), this->Font::dataPointer()));
    2828  }
    2929}
  • branches/new_class_id/src/lib/graphics/text_engine/resource_font.h

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