简体   繁体   English

Marmalade Sdk屏幕尺寸分辨率

[英]Marmalade Sdk Resolution of Screen Size

I'm mobile game developer on Marmalade newly. 我是Marmalade的新手机游戏开发者。 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? Iw2DGetSurfaceWidth()IwGxGetScreenWidth()什么区别,它是完全一样的,或者不是哪一个更好?

IwGx and its subcomponents use three different types of surfaces. IwGx及其子组件使用三种不同类型的表面。

  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. Surface,由程序员制作。 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. 它是用于UI的矩形对象。

For more information you can look it up in the documentation: 有关更多信息,您可以在文档中查找:

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

and

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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