Changeset 3769 in orxonox.OLD for orxonox/branches/textEngine/src/lib/util/resource_manager.cc
- Timestamp:
- Apr 9, 2005, 10:32:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/util/resource_manager.cc
r3703 r3769 22 22 #include "primitive_model.h" 23 23 #include "texture.h" 24 #include "text_engine.h" 24 25 25 26 #include "list.h" … … 158 159 !strcmp(fileName, "cone")) 159 160 tmpType = PRIM; 161 else if (!strncmp(fileName+(strlen(fileName)-4), ".ttf", 4)) 162 tmpType = TTF; 160 163 else 161 164 tmpType = IMAGE; … … 220 223 else if (!strcmp(tmpResource->name, "cone")) 221 224 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); 222 231 break; 223 232 case IMAGE:
Note: See TracChangeset
for help on using the changeset viewer.