Hi
Does anybody know how to switch the iPhone into lanscape mode with GLBASIC??? I suppose you could always rotate the graphics 90 degrees and then plot from the top right corner moving left and down (if this makes sense)
it will be built in one day.
So far do this:
CREATESCREEN 0,0,480,320
USESCREEN 0
WHILE TRUE
.. draw as if it was 480x320
USESCREEN -1
ROTOSPRITE 0, (320-480)/2, (480-320)/2, 90 // or 270 for other orientation
SHOWSCREEN
WEND
You have to rotate the mouse coordinates, too.
Yes, this makes sense. Thanks :good:
Quote from: Kitty Hello on 2009-Aug-06
it will be built in one day.
So far do this:
CREATESCREEN 0,0,480,320
USESCREEN 0
WHILE TRUE
.. draw as if it was 480x320
USESCREEN -1
ROTOSPRITE 0, (320-480)/2, (480-320)/2, 90 // or 270 for other orientation
SHOWSCREEN
WEND
You have to rotate the mouse coordinates, too.