|
GlyEngine 0.4
Create games and apps with lua
|
Functions | |
| local function | cache_get (key) |
| local function | cache_set (key, load_func, unload_func) |
| local function | cache (key, load_func, unload_func) |
| local function | unset (key) |
| local function | gc_clear_all () |
A Garbage Collector System and also mangament manual of memory.
| local function cache | ( | key | , |
| load_func | , | ||
| unload_func | ) |
| local function cache_get | ( | key | ) |
| local function cache_set | ( | key | , |
| load_func | , | ||
| unload_func | ) |
| local function gc_clear_all | ( | ) |
loop() or draw(), but at strategic points such as changing games or world. This will clear all allocated memory, such as images, fonts, audios and things defined by you.