Class: Platform

Platform

A class for platform

new Platform ()

Properties:
Name Type Description
Platform.ROOT_DIRECTORY string The app path
Platform.screen Screen The screen informations
Platform.screenWidth number The screen width
Platform.screenHeight number The screen height
Platform.canvas3D Canvas3D The 3D canvas
Platform.canvasHUD Canvas2D The HUD canvas
Platform.canvasVideos Video The video canvas
Platform.canvasRendering Canvas2D The canvas for rendering paint
Platform.ctx Context The canvas context
Platform.ctxr Context The render canvas context
Platform.DESKTOP boolean Indicate if is desktop

Members

setWindowTitle

Set window title

setWindowSize

Set window size

quit

Quit app