Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3769 in orxonox.OLD for orxonox/branches/textEngine/src/lib/util


Ignore:
Timestamp:
Apr 9, 2005, 10:32:18 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: compiling again, many movements… still working

Location:
orxonox/branches/textEngine/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/util/resource_manager.cc

    r3703 r3769  
    2222#include "primitive_model.h"
    2323#include "texture.h"
     24#include "text_engine.h"
    2425
    2526#include "list.h"
     
    158159           !strcmp(fileName, "cone"))
    159160    tmpType = PRIM;
     161  else if (!strncmp(fileName+(strlen(fileName)-4), ".ttf", 4))
     162    tmpType = TTF;
    160163  else
    161164    tmpType = IMAGE;
     
    220223          else if (!strcmp(tmpResource->name, "cone"))
    221224            tmpResource->pointer = new PrimitiveModel(CONE);
     225          break;
     226        case TTF:
     227          if(isFile(fullName))
     228            tmpResource->pointer = new Font(fullName);
     229          else
     230            PRINTF(2)("Sorry, %s does not exist. Not loading Font\n", fullName);
    222231          break;
    223232        case IMAGE:
  • orxonox/branches/textEngine/src/lib/util/resource_manager.h

    r3681 r3769  
    1919
    2020//! An eumerator for different fileTypes the resourceManager supports \todo WAV, MP3, OGG support
    21 enum ResourceType {OBJ, PRIM, WAV, MP3, OGG, IMAGE};
     21enum ResourceType {OBJ, PRIM, WAV, MP3, OGG, TTF, IMAGE};
    2222//! An enumerator for different UNLOAD-types.
    2323/**
     
    4949
    5050   It does it by looking, if a desired file has already been loaded.
     51
     52   \todo loading also dependant by parameters.
    5153*/
    5254class ResourceManager : public BaseObject
Note: See TracChangeset for help on using the changeset viewer.