Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Creating a simple empty cube
  2. GUIElem img(0, 0, 40, 40);
  3. // Creating an interpolation for img, to rotate it to 90°
  4. RotationInterpolation inter(&img, 90);
  5.  
  6. // Inside the loop
  7. // This calculates the interpolations from 0° to 90° and updates the image
  8. inter.update(delta_time);
  9. // This draw the image
  10. img.draw();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement