Rotating

BlitzMax Forums/BlitzMax Beginners Area/Rotating

RetroRusty(Posted 2005) [#1]
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


Yan(Posted 2005) [#2]
MidHandleImage

Or

AutoMidHandle


RetroRusty(Posted 2005) [#3]
Nice, thanks mate :)


Shambler(Posted 2005) [#4]
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 ;)


Dreamora(Posted 2005) [#5]
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"


Shambler(Posted 2005) [#6]
I thought I would mention it because in debug it just fails silently with no error message (windoze).