Rotating using specific commands?

About Monkey 2 Forums Monkey 2 Programming Help Rotating using specific commands?

This topic contains 2 replies, has 2 voices, and was last updated by  PhatPeter 1 year, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11747

    PhatPeter
    Participant

    Say I want to use the canvas.DrawRect() command instead of the Draw commands that include a rotation parameter, how would I be able to rotate a sprite 90 degrees?

    #11748

    Phil
    Participant

    I am definitely not an expert here, but maybe this helps if no one else is posting. I looked into how it was done in DrawImage()

    this is something similar to Pushmatrix, then translate and rotate and draw, then Popmatrix to get back to normal drawing.

    #11753

    PhatPeter
    Participant

    Thanks, that got me lots of clues I got put together a general routine (not optimized or anything but to get started).
    I still wonder though if Mojo has better streamlined solution for this or if you need to go OpenGLES2 for yourself to optimise things.

    [/crayon]
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.