Difference between revisions of "Core"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' mac, pc<br/>
+
'''<translate>Supported platforms</translate>:''' [[File:Platform mac]][[File:Platform pc]]<br/>
'''Available since:''' Gideros 2012.2<br/>
+
'''<translate>Available since</translate>:''' Gideros 2012.2<br/>
 +
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Gideros Core functions</translate>
 
<translate>Gideros Core functions</translate>

Revision as of 10:28, 24 August 2018

Supported platforms: File:Platform macFile:Platform pc
Available since: Gideros 2012.2
Inherits from: Object

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