简体   繁体   中英

Marmalade Sdk Resolution of Screen Size

I'm mobile game developer on Marmalade newly. So I wanna get screen height and width for resolution of different screen size. What's difference between Iw2DGetSurfaceWidth() and IwGxGetScreenWidth() , is it totaly the same or if not which one is better?

IwGx and its subcomponents use three different types of surfaces.

  1. Device, which holds the width and height of the device, without worrying about the screen orentation.

  2. Screen, which is the same as Device but switches the width and height when the device orientation is changed.

  3. Surface, which is made by the programmer. It's up to you to create surfaces. A screen can have several surfaces or none at all, like images. Its a rectangular object used for the UI.

For more information you can look it up in the documentation:

http://docs.madewithmarmalade.com/native/api_reference/iwgxapidocumentation/iwgxapioverview/screenmanipulation.html

and

http://docs.madewithmarmalade.com/native/api_reference/iw2dapidocumentation/iw2dapioverview/usingsurfaces.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM