Inherits from JavaScript Object

Overview of Tasks

Attributes

  • Type
  • float
  • bool
  • float
  • bool
  • Scene
  • Size
  • Size
  • Writability
  • readwrite
  • readwrite
  • readwrite
  • readwrite
  • readonly
  • readonly
  • readonly

Functions

  • Return Type
  • Point
  • void

Attributes

contentScaleFactor

Controls the content scale factor for iOS devices with retina display

readwrite float contentScaleFactor

Discussion

This attribute is a subject to change in future releases. It may be enhanced to support virtual viewport settings for Android devices.

It’s present here for debug purpose. Please use NamespaceiOS.enableRetinaDisplay to enable hi-res support on iOS devices with retina display.

displayFPS

readwrite bool displayFPS

Discussion

Sets to true to display the FPS information on the screen. Default: false.

fpsInterval

readwrite float fpsInterval

Discussion

Default: 1.0f

multipleTouchEnabled

readwrite bool multipleTouchEnabled

Discussion

Default: false

runningScene

readonly Scene runningScene

winSize

Non-null readonly Size winSize

winSizeInPixels

Non-null readonly Size winSizeInPixels

Functions

convertToGL(p)

Point convertToGL(Point p)

Parameters

Non-null Point p

Return Value: Point

runScene(scene)

Run with a scene.

void runScene(Scene scene)

Parameters

Non-null Scene scene

Discussion

If there is no running scene, the inside animation loop will start with the scene. If there is already a running scene, the previous scene is stopped and replaced with the new scene.