Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

File:
1 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:
Note: See TracChangeset for help on using the changeset viewer.