Static variables

staticread onlyfontFormats:Array<String>

staticread onlyimageFormats:Array<String>

staticprogress:Float

staticread onlysoundFormats:Array<String>

staticread onlyvideoFormats:Array<String>

Static methods

staticloadBlob (name:String, done:Blob ‑> Void):Void

staticloadBlobFromPath (path:String, done:Blob ‑> Void):Void

staticloadEverything (callback:Void ‑> Void):Void

staticloadFont (name:String, done:Font ‑> Void):Void

staticloadFontFromPath (path:String, done:Font ‑> Void):Void

staticloadImage (name:String, done:Image ‑> Void):Void

Loads an image by name which was preprocessed by khamake.

Parameters:

name

The name as defined by the khafile.

done

A callback.

staticloadImageFromPath (path:String, readable:Bool, done:Image ‑> Void):Void

Loads an image from a path. Most targets support PNG and JPEG formats.

Parameters:

path

The path to the image file.

readable

If true, a copy of the image will be kept in main memory for image read operations.

done

A callback.

staticloadSound (name:String, done:Sound ‑> Void):Void

staticloadSoundFromPath (path:String, done:Sound ‑> Void):Void

staticloadVideo (name:String, done:Video ‑> Void):Void

staticloadVideoFromPath (path:String, done:Video ‑> Void):Void