Difference between revisions of "Core"

(Undo revision 13660 by MoKaLux (talk))
(Tag: Undo)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
+
<languages />
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
+
<!-- GIDEROSOBJ:Core -->
'''Available since:''' Gideros 2012.2<br/>
+
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
'''Inherits from:''' [[Object]]<br/>
+
'''<translate>Available since</translate>:''' Gideros 2012.2<br/>
 
+
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
=== Description ===
+
=== <translate>Description</translate> ===
Gideros Core functions
+
<translate>Gideros Core functions</translate>
 
+
=== <translate>Examples</translate> ===
=== Examples ===
+
'''Example'''<br/>
<source lang="lua">
+
<source lang="lua">MySprite = Core.class(Sprite)
MySprite = Core.class(Sprite)
 
 
--my custom sprite class
 
--my custom sprite class
 
function MySprite:init()
 
function MySprite:init()
end
+
end</source>
</source>
 
 
 
 
{|-
 
{|-
 
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
+
=== <translate>Methods</translate> ===
=== Methods ===
+
[[Special:MyLanguage/Core.asyncCall|Core.asyncCall]] ''<translate>Launch function on separate thread as background task</translate>''<br/><!-- GIDEROSMTD:Core.asyncCall(task,parameters) Launch function on separate thread as background task -->
[[Core.asyncCall]] ''Launch function on separate thread as background task''<br/>
+
[[Special:MyLanguage/Core.class|Core.class]] ''<translate>Creates and returns new Gideros class</translate>''<br/><!-- GIDEROSMTD:Core.class(base) Creates and returns new Gideros class -->
[[Core.class]] ''Creates and returns new Gideros class''<br/>
+
[[Special:MyLanguage/Core.frameStatistics|Core.frameStatistics]] ''<translate>Return table with data about frame</translate>''<br/><!-- GIDEROSMTD:Core.frameStatistics() Return table with data about frame -->
[[Core.frameStatistics]] ''Return table with data about frame''<br/>
+
[[Special:MyLanguage/Core.profilerReport|Core.profilerReport]] ''<translate>Output profiling results</translate>''<br/><!-- GIDEROSMTD:Core.profilerReport() Output profiling results -->
[[Core.profilerReport]] ''Output profiling results''<br/>
+
[[Special:MyLanguage/Core.profilerReset|Core.profilerReset]] ''<translate>Clear recorded profiling data</translate>''<br/><!-- GIDEROSMTD:Core.profilerReset() Clear recorded profiling data -->
[[Core.profilerReset]] ''Clear recorded profiling data''<br/>
+
[[Special:MyLanguage/Core.profilerStart|Core.profilerStart]] ''<translate>Start profiling lua code</translate>''<br/><!-- GIDEROSMTD:Core.profilerStart() Start profiling lua code -->
[[Core.profilerStart]] ''Start profiling lua code''<br/>
+
[[Special:MyLanguage/Core.profilerStop|Core.profilerStop]] ''<translate>Stop profiling</translate>''<br/><!-- GIDEROSMTD:Core.profilerStop() Stop profiling -->
[[Core.profilerStop]] ''Stop profiling''<br/>
+
[[Special:MyLanguage/Core.random|Core.random]] ''<translate>Generate a random number</translate>''<br/><!-- GIDEROSMTD:Core.random(generator,bound1,bound2) Generate a random number -->
[[Core.random]] ''Generate a random number''<br/>
+
[[Special:MyLanguage/Core.randomSeed|Core.randomSeed]] ''<translate>Set the random generator seed</translate>''<br/><!-- GIDEROSMTD:Core.randomSeed(generator,seed) Set the random generator seed -->
[[Core.randomSeed]] ''Set the random generator seed''<br/>
+
[[Special:MyLanguage/Core.yield|Core.yield]] ''<translate>Yield function running as background task</translate>''<br/><!-- GIDEROSMTD:Core.yield(state) Yield function running as background task -->
[[Core.yield]] ''Yield function running as background task''<br/>
 
 
 
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
+
=== <translate>Events</translate> ===
=== Events ===
+
=== <translate>Constants</translate> ===
 
 
=== Constants ===
 
 
 
 
|}
 
|}
 
{{Core}}
 

Revision as of 11:06, 4 December 2019


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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