SETORIENTATION - orientation for iPads and stuff

Previous topic - Next topic

Kitty Hello

http://www.glbasic.com/xmlhelp.php?lang=en&id=402&action=view

See attached program. Press keys 1-4 to change orientation.

Dude, was that a lot of work. I hope it's worth some.

[attachment deleted by admin]

spicypixel

http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

ampos

 :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw:

Which devices is this working at?

iOS? WebOS? Android?

When will you release GLBasic updated with this?

How many resources takes this rotated screen?

Is a rotation done by GL itself, or is GLB making internally a USESCREEN x,y;draws_on_screen x;usecreen -1;rotosprite y?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

no resources. It's just a glMultMatrix and glViewport command change.

MrTAToad

It's going to be so much easier for mobile devices now (or even desktop machines that support rotating monitors) :)


MrTAToad

I think for the most part it is automatic - although with things like DDGui, the GETORIENTATION command would be used to check to see if orientation has changed.

ampos

The orientation is not automatic. You have to read joyx&y and decide to set the screen as rotated.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

AH yes, for detecting the change, you would need code.

XanthorXIII

Owlcat has wise

blackway

Great stuff!!!!!!!!! :nw:
Thanks Gernot!!!!!

Millerszone

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Gary


Kitty Hello

If the update fails (English beta) get this patch before:
http://www.glbasic.com/beta/Update_e.exe. So sorry.

spicypixel

#13
Quote from: Kitty Hello on 2011-Jun-06
If the update fails (English beta) get this patch before:
http://www.glbasic.com/beta/Update_e.exe. So sorry.

My internet update in GLB10 (9.095) says upto date so I presume you mean use this patch and then try and update. Just to clarify!
Just copied the update_e.exe into my GLBasic_beta folder ran the internet update from the editor and it says upto date although nothing was downloaded and there seems to be no SETORIENTATION commands???
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

ampos

I am at beta 10.040, and I think I am not updated to the latest-latest version...
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE