Skip to content
Alessandro Febretti edited this page Feb 7, 2014 · 5 revisions

module omega

These functions are used control the loading of assets.

ofindfile(name)

Searches for a file, returning the full path if found, or an empty string if the search fails. See the filesystem management page for more information on file lookup in omegalib.

osetdataprefix(prefix)

Sets a path prefix for data loading operations. Currently used only for image loading commands.

ogetdataprefix()

Gets the path prefix used for data loading operations. Currently used only for image loading commands.

loadImage(filename)

Loads an image given a file path. If loading is succesfull, returns an instance of PixelData. If loading fails, return None

setImageLoaderThreads(int), getImageLoaderThreads()

Gets or sets the number of threads used for asynchronous image loading. Async image loading is currently available only for native code modules.

Clone this wiki locally