Difference between revisions of "Core"

From GiderosMobile
Line 3: Line 3:
 
'''Available since:''' Gideros 2012.2<br/>
 
'''Available since:''' Gideros 2012.2<br/>
 
=== Description ===
 
=== Description ===
Gideros Core functions
+
<translate>Gideros Core functions</translate>
 
=== Examples ===
 
=== Examples ===
 
'''Example'''<br/>
 
'''Example'''<br/>

Revision as of 13:38, 23 August 2018

Supported platforms: mac, pc
Available since: Gideros 2012.2

Description

Gideros Core functions

Examples

Example

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

Methods

Core.asyncCall - Launch function on separate thread as background task
Core.class - Creates and returns new Gideros class
Core.frameStatistics - Return table with data about frame
Core.profilerReport - Output profiling results
Core.profilerReset - Clear recorded profiling data
Core.profilerStart - Start profiling lua code
Core.profilerStop - Stop profiling
Core.random - Generate a random number
Core.randomSeed - Set the random generator seed
Core.yield - Yield function running as background task

Events

Constants