In Marmalade you can set the current transform matrix in every frame and then reset it into Identity. Or else you can set the transform matrix once and apply it to all future rendering/drawing.
When you call Iw2DDrawImage()
or Iw2DDrawRect()
or any other Iw2DDraw
function, the drawing will be based on the current transform matrix. So if you've set rotation of 45 degrees on a particular drawing, every next drawing will be rotated to 45 degrees, unless you reset it again, same for scaling and other transformation. So if you want to avoid that, call Iw2DSetTransformMatrix()
function and set it to identity matrix after the use is over in the current frame.