Core

From GiderosMobile

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.pngPlatform linux.png
Available since: Gideros 2012.2
Inherits from: Object

Description

Gideros Core functions.

Example

MySprite = Core.class(Sprite)
--my custom sprite class
function MySprite:init()
end

Reference

https://github.com/gideros/gideros/blob/e028375a188da4df28928ac671245bc985c10f43/luabinding/luaapplication.cpp#L1021

Methods

Core.asyncCall launches function on separate thread as background task
Core.asyncThread launches function on separate thread as a parallel task
Core.class creates and returns new Gideros class
Core.enableAllocationTracking returns table with data about object allocation
Core.findReferences a list of all Core Class references
Core.frameStatistics returns table with data about frame
Core.getScriptPath returns the path to a script
Core.profilerReport outputs profiling results
Core.profilerReset clears recorded profiling data
Core.profilerStart starts profiling lua code
Core.profilerStop stops profiling
Core.random generates a random number
Core.randomSeed sets the random generator seed
Core.setAutoYield changes auto yield capability of async tasks
Core.signal creates a signal for use by parallel threads
Core.stopping returns if the thread is stopping
Core.yield yields function running as background task
Core.yieldable checks if current thread can yield

Events

Constants