Rotating

BlitzMax Forums/BlitzMax Beginners Area/Rotating

Can anyone tell me how I can rotate an image from the centre of the image? I have tried SetRotation(rotation #) but it rotates from the top left of the image.

Thanks

MidHandleImage

Or

AutoMidHandle

Nice, thanks mate :)

A little note to add about this command is that you must use it after setting the graphics mode otherwise it has no effect.

Bug or feature I'm not sure ;)

setting anything to a OpenGL matrix before creating the OpenGL context can't work. So nor feature or bug, just "first set up the environment before setting subparts"

I thought I would mention it because in debug it just fails silently with no error message (windoze).