Difference between revisions of "Core"
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
(9 intermediate revisions by 2 users not shown) | |||
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/> | + | '''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]][[File:Platform linux.png]]<br/> |
'''Available since:''' Gideros 2012.2<br/> | '''Available since:''' Gideros 2012.2<br/> | ||
'''Inherits from:''' [[Object]]<br/> | '''Inherits from:''' [[Object]]<br/> | ||
Line 14: | Line 14: | ||
function MySprite:init() | function MySprite:init() | ||
end | end | ||
− | </ | + | </syntaxhighlight> |
+ | |||
+ | === Reference === | ||
+ | https://github.com/gideros/gideros/blob/master/luabinding/luaapplication.cpp | ||
{|- | {|- | ||
Line 23: | Line 26: | ||
[[Core.class]] ''creates and returns new Gideros class''<br/><!--GIDEROSMTD:Core.class(base) creates and returns a new Gideros class--> | [[Core.class]] ''creates and returns new Gideros class''<br/><!--GIDEROSMTD:Core.class(base) creates and returns a new Gideros class--> | ||
[[Core.enableAllocationTracking]] ''returns table with data about object allocation''<br/><!--GIDEROSMTD:Core.enableAllocationTracking() returns table with data about object allocation--> | [[Core.enableAllocationTracking]] ''returns table with data about object allocation''<br/><!--GIDEROSMTD:Core.enableAllocationTracking() returns table with data about object allocation--> | ||
+ | [[Core.fileLoad]] ''optimized file loading''<br/><!--GIDEROSMTD:Core.fileLoad(filename,table) optimized file loading--> | ||
+ | [[Core.fileSave]] ''optimized file saving''<br/><!--GIDEROSMTD:Core.fileSave(filename,buffer,table) optimized file saving--> | ||
+ | [[Core.findReferences]] ''a list of all Core Class references''<br/><!--GIDEROSMTD:Core.findReferences() a list of all Core Class references--> | ||
[[Core.frameStatistics]] ''returns table with data about frame''<br/><!--GIDEROSMTD:Core.frameStatistics() returns a table with data about frame--> | [[Core.frameStatistics]] ''returns table with data about frame''<br/><!--GIDEROSMTD:Core.frameStatistics() returns a table with data about frame--> | ||
+ | [[Core.getScriptPath]] ''returns the path to a script''<br/><!--GIDEROSMTD:Core.getScriptPath() returns the path to a script--> | ||
[[Core.profilerReport]] ''outputs profiling results''<br/><!--GIDEROSMTD:Core.profilerReport() outputs profiling results--> | [[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--> | [[Core.profilerReset]] ''clears recorded profiling data''<br/><!--GIDEROSMTD:Core.profilerReset() clears recorded profiling data--> | ||
Line 30: | Line 37: | ||
[[Core.random]] ''generates a random number''<br/><!--GIDEROSMTD:Core.random(generator,bound1,bound2) generates a random number--> | [[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--> | [[Core.randomSeed]] ''sets the random generator seed''<br/><!--GIDEROSMTD:Core.randomSeed(generator,seed) sets the random generator seed--> | ||
+ | [[Core.setAutoYield]] ''changes auto yield capability of async tasks''<br/><!--GIDEROSMTD:Core.setAutoYield(auto) changes auto yield capability of async tasks--> | ||
[[Core.signal]] ''creates a signal for use by parallel threads''<br/><!--GIDEROSMTD:Core.signal() creates a signal for use by parallel threads--> | [[Core.signal]] ''creates a signal for use by parallel threads''<br/><!--GIDEROSMTD:Core.signal() creates a signal for use by parallel threads--> | ||
+ | [[Core.stopping]] ''returns if the thread is stopping''<br/><!--GIDEROSMTD:Core.stopping() returns if the thread is stopping--> | ||
[[Core.yield]] ''yields function running as background task''<br/><!--GIDEROSMTD:Core.yield(state,nowait) yields function running as background task--> | [[Core.yield]] ''yields function running as background task''<br/><!--GIDEROSMTD:Core.yield(state,nowait) yields function running as background task--> | ||
[[Core.yieldable]] ''checks if current thread can yield''<br/><!--GIDEROSMTD:Core.yieldable() checks if current thread can yield--> | [[Core.yieldable]] ''checks if current thread can yield''<br/><!--GIDEROSMTD:Core.yieldable() checks if current thread can yield--> | ||
+ | [[Core.yieldlock]] ''locks current thread''<br/><!--GIDEROSMTD:Core.yieldlock(bool) locks current thread--> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | |||
=== Events === | === Events === | ||
=== Constants === | === Constants === |
Latest revision as of 00:16, 26 March 2025
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
Reference
https://github.com/gideros/gideros/blob/master/luabinding/luaapplication.cpp
MethodsCore.asyncCall launches function on separate thread as background task |
EventsConstants |