Native resolution of the iPhone...

Previous topic - Next topic

ampos

what is the "native" resolution of the iPhone?

320x480 (vertical) or 480x320 (horizontal)?

Who rotates the screen, GLB or iPhone hardware?

Is there a (gpu) penalty of using a "rotated" (non-native) screen?


Ian Price

I think Matchy (IIRC) stated that there were no CPU differences between using an iPhod in landscape or portrait mode. As you are aware though, certain features of GLB only work properly (or speedily) in one mode or the other. Also GLB only seems to rotate in one direction - I've had other pieces of software that you could have the Reset? button on left or right. Monkey Island is a bugger for this, as everytime I play it it seems to flip the other way! :P
I came. I saw. I played.

matchy

It's good idea to plan first whether you game will contain 3D and is rotatable because ultimately you end up ROTOSPRITEing a screen anyhow.

Kitty Hello

internally I use a glRotate of the camera matrix, which is CPU-Power-Free for drawsprite. The drawback is, all my glReadPixel (GRABSPRITE) is rotated in landscape mode. Thus, I must calculate the rotated positions of what you want to grab and rotate the gained pixels later with software. It's pretty fast, but almost like a flipscreen on a Wiz in performance.