Changeset 3769 in orxonox.OLD for orxonox/branches/textEngine/src/lib/util
- Timestamp:
- Apr 9, 2005, 10:32:18 PM (20 years ago)
- 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 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: -
orxonox/branches/textEngine/src/lib/util/resource_manager.h
r3681 r3769 19 19 20 20 //! An eumerator for different fileTypes the resourceManager supports \todo WAV, MP3, OGG support 21 enum ResourceType {OBJ, PRIM, WAV, MP3, OGG, IMAGE};21 enum ResourceType {OBJ, PRIM, WAV, MP3, OGG, TTF, IMAGE}; 22 22 //! An enumerator for different UNLOAD-types. 23 23 /** … … 49 49 50 50 It does it by looking, if a desired file has already been loaded. 51 52 \todo loading also dependant by parameters. 51 53 */ 52 54 class ResourceManager : public BaseObject
Note: See TracChangeset
for help on using the changeset viewer.