Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worldMatrixStack.push(m_world);
- m_world.translate(obj->position);
- m_world.rotate(obj->rotation.x(), 1, 0, 0);
- m_world.rotate(obj->rotation.y(), 0, 1, 0);
- m_world.rotate(obj->rotation.z(), 0, 0, 1);
- m_world.scale(obj->scale);
- setTransforms();
- obj->render(this);
- m_world = worldMatrixStack.pop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement