Difference between revisions of "Core"
From GiderosMobile
(removed language stuff) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | |||
<!-- GIDEROSOBJ:Core --> | <!-- GIDEROSOBJ:Core --> | ||
− | ''' | + | '''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/> |
− | ''' | + | '''Available since:''' Gideros 2012.2<br/> |
− | ''' | + | '''Inherits from:''' [[Object]]<br/> |
− | === | + | === Description === |
− | + | Gideros Core functions. | |
− | === | + | === Example === |
<source lang="lua"> | <source lang="lua"> | ||
MySprite = Core.class(Sprite) | MySprite = Core.class(Sprite) | ||
Line 19: | Line 18: | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
− | [[ | + | [[Core.asyncCall]] ''launches function on separate thread as background task''<br/><!--GIDEROSMTD:Core.asyncCall(task,parameters) launches function on separate thread as background task--> |
− | <!-- GIDEROSMTD:Core.asyncCall(task,parameters) | + | [[Core.class]] ''creates and returns new Gideros class''<br/><!--GIDEROSMTD:Core.class(base) creates and returns a new Gideros class--> |
− | [[ | + | [[Core.frameStatistics]] ''returns table with data about frame''<br/><!--GIDEROSMTD:Core.frameStatistics() returns a table with data about frame--> |
− | <!-- GIDEROSMTD:Core.class(base) | + | [[Core.profilerReport]] ''outputs profiling results''<br/><!--GIDEROSMTD:Core.profilerReport() outputs profiling results--> |
− | [[ | + | [[Core.profilerReset]] ''clears recorded profiling data''<br/><!--GIDEROSMTD:Core.profilerReset() clears recorded profiling data--> |
− | <!-- GIDEROSMTD:Core.frameStatistics() | + | [[Core.profilerStart]] ''starts profiling lua code''<br/><!--GIDEROSMTD:Core.profilerStart() starts profiling lua code--> |
− | [[ | + | [[Core.profilerStop]] ''stops profiling''<br/><!--GIDEROSMTD:Core.profilerStop() stops profiling--> |
− | <!-- GIDEROSMTD:Core.profilerReport() | + | [[Core.random]] ''generates a random number''<br/><!--GIDEROSMTD:Core.random(generator,bound1,bound2) generates a random number--> |
− | [[ | + | [[Core.randomSeed]] ''sets the random generator seed''<br/><!--GIDEROSMTD:Core.randomSeed(generator,seed) sets the random generator seed--> |
− | <!-- GIDEROSMTD:Core.profilerReset() | + | [[Core.yield]] ''yields function running as background task''<br/><!--GIDEROSMTD:Core.yield(state) yields function running as background task--> |
− | [[ | ||
− | <!-- GIDEROSMTD:Core.profilerStart() | ||
− | [[ | ||
− | <!-- GIDEROSMTD:Core.profilerStop() | ||
− | [[ | ||
− | <!-- GIDEROSMTD:Core.random(generator,bound1,bound2) | ||
− | [[ | ||
− | <!-- GIDEROSMTD:Core.randomSeed(generator,seed) | ||
− | [[ | ||
− | <!-- GIDEROSMTD:Core.yield(state) | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 22:54, 15 March 2021
Supported platforms:
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
MethodsCore.asyncCall launches function on separate thread as background task |
EventsConstants |