Difference between revisions of "Core"

From GiderosMobile
Line 11: Line 11:
 
end</source>
 
end</source>
 
{|-
 
{|-
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[Core.asyncCall]] {{<translate>Launch function on separate thread as background task</translate>}}<br/>
+
[[Core.asyncCall]] ''<translate>Launch function on separate thread as background task</translate>''<br/>
[[Core.class]] {{<translate>Creates and returns new Gideros class</translate>}}<br/>
+
[[Core.class]] ''<translate>Creates and returns new Gideros class</translate>''<br/>
[[Core.frameStatistics]] {{<translate>Return table with data about frame</translate>}}<br/>
+
[[Core.frameStatistics]] ''<translate>Return table with data about frame</translate>''<br/>
[[Core.profilerReport]] {{<translate>Output profiling results</translate>}}<br/>
+
[[Core.profilerReport]] ''<translate>Output profiling results</translate>''<br/>
[[Core.profilerReset]] {{<translate>Clear recorded profiling data</translate>}}<br/>
+
[[Core.profilerReset]] ''<translate>Clear recorded profiling data</translate>''<br/>
[[Core.profilerStart]] {{<translate>Start profiling lua code</translate>}}<br/>
+
[[Core.profilerStart]] ''<translate>Start profiling lua code</translate>''<br/>
[[Core.profilerStop]] {{<translate>Stop profiling</translate>}}<br/>
+
[[Core.profilerStop]] ''<translate>Stop profiling</translate>''<br/>
[[Core.random]] {{<translate>Generate a random number</translate>}}<br/>
+
[[Core.random]] ''<translate>Generate a random number</translate>''<br/>
[[Core.randomSeed]] {{<translate>Set the random generator seed</translate>}}<br/>
+
[[Core.randomSeed]] ''<translate>Set the random generator seed</translate>''<br/>
[[Core.yield]] {{<translate>Yield function running as background task</translate>}}<br/>
+
[[Core.yield]] ''<translate>Yield function running as background task</translate>''<br/>
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 15:34, 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