Loom2D

public class
loom2d.Loom2D

Description

Loom2D is a hardware accelerated 2D graphics library based on Starling by Gamua.

The Loom2D class contains a few globals used by the Loom2D library. It's most convenient for the juggler field which is used to access the Juggler, which controls time driven logic.

API overview

Constructor

Loom2D ()

Attributes

Public attributes

contentScaleFactor: Number static

Set this at startup to control the display scale factor, for instance on HiDPI devices

juggler: Juggler static

Reference to the current Juggler, which controls time driven logic

stage: Stage static

Reference to the active Loom2D Stage

Functions

Public functions

execute ( func: Function , args: Vector.<Object> ): Void static

Executes a function with the specified arguments

Constructor

Loom2D ()

Attributes

contentScaleFactor: Number

static

Set this at startup to control the display scale factor, for instance on HiDPI devices. It sets how many native pixels a Loom2D unit corresponds to.

juggler: Juggler

static

Reference to the current Juggler, which controls time driven logic.

stage: Stage

static

Reference to the active Loom2D Stage.

Functions

execute ( func: Function , args: Vector.<Object> ): Void

static

Executes a function with the specified arguments. If the argument count does not match the function, the argument list is cropped / filled up with null values.

Parameters

func: Function
args: Vector.<Object>


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

: