Advertisement
czlowiekzgon

Untitled

Jun 8th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. worldMatrixStack.push(m_world);
  2. m_world.translate(obj->position);
  3. m_world.rotate(obj->rotation.x(), 1, 0, 0);
  4. m_world.rotate(obj->rotation.y(), 0, 1, 0);
  5. m_world.rotate(obj->rotation.z(), 0, 0, 1);
  6. m_world.scale(obj->scale);
  7. setTransforms();
  8. obj->render(this);
  9. m_world = worldMatrixStack.pop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement