diff options
| author | jussi | 2025-05-24 23:56:42 +0300 |
|---|---|---|
| committer | jussi | 2025-05-24 23:56:42 +0300 |
| commit | e26bb8603c5a4053f2790fc7d6ce02b3179f5289 (patch) | |
| tree | 5d6bcc991663b0b60fc5a38179104954892b1286 /include/lua_core.h | |
| parent | 913b8f882031893f926b6aba89ec4456cb39a2c0 (diff) | |
| download | reilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.tar.gz reilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.tar.bz2 reilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.zip | |
RL.load and RL.unload functions for memory leak debugging. SoundAlias garbage collection.
Diffstat (limited to 'include/lua_core.h')
| -rw-r--r-- | include/lua_core.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/lua_core.h b/include/lua_core.h index e7c45fb..405f054 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -55,6 +55,8 @@ void luaCallInit(); void luaCallUpdate(); void luaCallDraw(); void luaCallExit(); +void luaCallLoad( const char* type, void* object ); +void luaCallUnload( const char* type, void* object ); void luaRegister(); void platformDefineGlobals(); void luaPlatformRegister(); @@ -119,6 +121,7 @@ REILUAPI void uluaPushFont( lua_State* L, Font font ); REILUAPI void uluaPushGlyphInfo( lua_State* L, GlyphInfo glyph ); REILUAPI void uluaPushWave( lua_State* L, Wave wave ); REILUAPI void uluaPushSound( lua_State* L, Sound sound ); +REILUAPI void uluaPushSoundAlias( lua_State* L, Sound alias ); REILUAPI void uluaPushMusic( lua_State* L, Music music ); REILUAPI void uluaPushLight( lua_State* L, Light light ); REILUAPI void uluaPushMaterial( lua_State* L, Material material ); @@ -128,6 +131,24 @@ REILUAPI void uluaPushModelAnimation( lua_State* L, ModelAnimation modelAnimatio REILUAPI void uluaPushRLRenderBatch( lua_State* L, rlRenderBatch renderBatch ); REILUAPI void uluaPushAutomationEvent( lua_State* L, AutomationEvent event ); REILUAPI void uluaPushAutomationEventList( lua_State* L, AutomationEventList eventList ); +/* Unload objects. */ +void uluaUnloadBuffer( Buffer* buffer ); +void uluaUnloadImage( Image* image ); +void uluaUnloadTexture( Texture* texture ); +void uluaUnloadRenderTexture( RenderTexture* renderTexture ); +void uluaUnloadShader( Shader* shader ); +void uluaUnloadFont( Font* font ); +void uluaUnloadGlyphInfo( GlyphInfo* glyph ); +void uluaUnloadWave( Wave* wave ); +void uluaUnloadSound( Sound* sound ); +void uluaUnloadSoundAlias( Sound* sound ); +void uluaUnloadMusic( Music* music ); +void uluaUnloadMaterial( Material* material, bool freeAll ); +void uluaUnloadMesh( Mesh* mesh ); +void uluaUnloadModel( Model* model ); +void uluaUnloadModelAnimation( ModelAnimation* modelAnimation ); +void uluaUnloadRLRenderBatch( rlRenderBatch* renderBatch ); +void uluaUnloadAutomationEventList( AutomationEventList* eventList ); /* Utils. */ REILUAPI int uluaGetTableLen( lua_State* L, int index ); REILUAPI bool uluaIsNil( lua_State* L, int index ); |
