Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top