Showing the changes to libraries/shared/src/GLMHelpers.cpp (1 of 35 files). Show all
Unified · Split
| @@ -336,6 +336,10 @@ QMatrix4x4 fromGlm(const glm::mat4 & m) { · 335 unmodified lines | |||
| 336 | return QMatrix4x4(&m[0][0]).transposed(); | 336 | return QMatrix4x4(&m[0][0]).transposed(); |
| 337 | } | 337 | } |
| 338 | 338 | ||
| 339 | QSize fromGlm(const glm::ivec2 & v) { | ||
| 340 | return QSize(v.x, v.y); | ||
| 341 | } | ||
| 342 | |||
| 339 | QRectF glmToRect(const glm::vec2 & pos, const glm::vec2 & size) { | 343 | QRectF glmToRect(const glm::vec2 & pos, const glm::vec2 & size) { |
| 340 | QRectF result(pos.x, pos.y, size.x, size.y); | 344 | QRectF result(pos.x, pos.y, size.x, size.y); |
| 341 | return result; | 345 | return result; |