Author Topic: iPhone landscape mode  (Read 1388 times)

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
iPhone landscape mode
« on: 2009-Aug-06 »
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)
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iPhone landscape mode
« Reply #1 on: 2009-Aug-06 »
it will be built in one day.
So far do this:

Code: GLBasic [Select]
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.

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: iPhone landscape mode
« Reply #2 on: 2009-Aug-06 »
Yes, this makes sense. Thanks  :good:

it will be built in one day.
So far do this:

Code: GLBasic [Select]
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.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added