Changeset 9406 in orxonox.OLD for trunk/src/lib/graphics/importer/md3
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/md3/md3_animation_cfg.cc
r9391 r9406 19 19 #include "md3_animation.h" 20 20 21 #include " tokenizer.h"21 #include "substring.h" 22 22 #include "helper_functions.h" 23 23 24 24 #include "debug.h" 25 25 26 #include <stdio.h> 27 #include <stdlib.h> 28 29 30 using namespace std; 26 27 28 31 29 32 30 namespace md3 … … 100 98 if( inHeader && line.find("sex") == 0) { 101 99 //parse line: sex [m | f | ...] 102 std::vector<std::string> tokens; 103 Tokenizer::tokenize(line, tokens, " \t\n\r\f/"); 100 SubString tokens(line, " \t\n\r\f/"); 104 101 105 102 std::string sexStr = tokens.back(); … … 117 114 else if( inHeader && line.find("headoffset") == 0) { 118 115 // parse line: headoffset X Y Z 119 std::vector<std::string> tokens; 120 Tokenizer::tokenize(line, tokens, " \t\n\r\f/"); 116 SubString tokens(line, " \t\n\r\f/"); 121 117 122 118 float z = atof(tokens.back().c_str()); tokens.pop_back(); … … 130 126 else if( inHeader && line.find("footsteps") == 0) { 131 127 //parse line: footsteps [normal | mech | ...] 132 std::vector<std::string> tokens; 133 Tokenizer::tokenize(line, tokens, " \t\n\r\f/"); 128 SubString tokens (line, " \t\n\r\f/"); 134 129 135 130 this->footsteps = tokens.back(); … … 190 185 // parse the line: 191 186 // first frame, num frames, looping frames, frames per second (fps) 192 std::vector<std::string> tokens; 193 Tokenizer::tokenize(line, tokens, " \t\n\r\f/"); 187 SubString tokens(line, " \t\n\r\f/"); 194 188 195 189 anim->fps = atoi(tokens.back().c_str()); tokens.pop_back();
Note: See TracChangeset
for help on using the changeset viewer.