src/parser.cpp

changeset 115
ed884a2fb009
parent 105
6ca6e8c647d4
child 140
2f383e88acf4
equal deleted inserted replaced
114:4e03b0e2a29f 115:ed884a2fb009
309 throw BodyParseError{"vertex contained illegal co-ordinates"}; 309 throw BodyParseError{"vertex contained illegal co-ordinates"};
310 } 310 }
311 return {x, y, z}; 311 return {x, y, z};
312 } 312 }
313 313
314 static glm::mat4 matrixFromStrings(const QStringList& tokens, const int startingPosition, const int positionStartingIndex) 314 static glm::mat4 matrixFromStrings(
315 const QStringList& tokens,
316 const int startingPosition,
317 const int positionStartingIndex)
315 { 318 {
316 glm::mat4 result = glm::mat4{1}; 319 glm::mat4 result = glm::mat4{1};
317 for (int i = 0; i < 9; i += 1) 320 for (int i = 0; i < 9; i += 1)
318 { 321 {
319 const int row = i / 3; 322 const int row = i / 3;

mercurial