Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/graphics/text_engine
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- 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 7 7 8 8 ResourceFont::ResourceFont(const std::string& fontName, unsigned int renderSize) 9 : Font(), NewResource(&ResourceFont::type)9 : Font(), Resource(&ResourceFont::type) 10 10 { 11 11 assert(!fontName.empty()); … … 20 20 { 21 21 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); 23 23 24 24 printf("FONTFILE %s TO %s\n", fontName.c_str(), fileName.c_str()); 25 25 26 26 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())); 28 28 } 29 29 } -
branches/new_class_id/src/lib/graphics/text_engine/resource_font.h
r9846 r9847 12 12 13 13 14 class ResourceFont : public Font, public Resources:: NewResource14 class ResourceFont : public Font, public Resources::Resource 15 15 { 16 16 public:
Note: See TracChangeset
for help on using the changeset viewer.