diff options
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -47,6 +47,18 @@ This function will be called before InitWindow. Note! Only place where you shoul --- +> function RL.load() + +This function will be called when loading resource that allocates memory. Usefull for memory leak debugging. Note! Cannot detect all resources, for example material textures. + +--- + +> function RL.unload() + +This function will be called when unloading resource that has allocated memory. Usefull for memory leak debugging. Note! Cannot detect all resources, for example material textures. + +--- + ## Object unloading Some objects allocate memory that needs to be freed when object is no longer needed. By default objects like Textures are unloaded by the Lua garbage collector. It is generatty however recommended to handle this manually in more complex projects. You can change the behavior with SetGCUnload. @@ -261,6 +273,12 @@ Sound --- +> SoundAlias = Userdata + +SoundAlias + +--- + > Music = Userdata Music, audio stream, anything longer than ~10 seconds should be streamed |
