OpenGL ES canvas size

Posted by Chaoz on Stack Overflow See other posts from Stack Overflow or by Chaoz
Published on 2010-06-13T14:38:41Z Indexed on 2010/06/13 14:42 UTC
Read the original article Hit count: 350

Filed under:
|
|
|

Ahoy,

I'm working on an OpenGL ES based game for Android using the NDK. My application is targeted towards SDK 1.6 and above.

I seem to be having a problem creating a canvas of the phones native size. My rendering is done through a native gameloop that uses OpenGL 1.0. I'm using the emulator and that gives me a 480x320 canvas -- this is totally fine. Then, when I run the same application on my HTC Desire which has a native resolution of 800x480 I'm getting a canvas of 533x320.

Anyone have any information on how to deal with/solve this? Any other information about this is also appreciated.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about android

Related posts about 3d