diff options
| author | jussi | 2023-10-30 22:40:20 +0200 |
|---|---|---|
| committer | jussi | 2023-10-30 22:40:20 +0200 |
| commit | c3295e014d979c0213b3fb7e4837b5356bc8fdb4 (patch) | |
| tree | 66ee22c7140761a17bf174d71fecfb94c1378b1d /include | |
| parent | 6e0d577d63b221797cdc7f392718dd1c4fb384b4 (diff) | |
| download | reilua-enhanced-c3295e014d979c0213b3fb7e4837b5356bc8fdb4.tar.gz reilua-enhanced-c3295e014d979c0213b3fb7e4837b5356bc8fdb4.tar.bz2 reilua-enhanced-c3295e014d979c0213b3fb7e4837b5356bc8fdb4.zip | |
Reintroducing Unload functions. Is*Ready functions. GC_UNLOAD setting and check function.
Diffstat (limited to 'include')
| -rw-r--r-- | include/audio.h | 6 | ||||
| -rw-r--r-- | include/core.h | 4 | ||||
| -rw-r--r-- | include/lua_core.h | 2 | ||||
| -rw-r--r-- | include/models.h | 6 | ||||
| -rw-r--r-- | include/state.h | 3 | ||||
| -rw-r--r-- | include/text.h | 2 | ||||
| -rw-r--r-- | include/textures.h | 5 |
7 files changed, 28 insertions, 0 deletions
diff --git a/include/audio.h b/include/audio.h index 756f16f..edc47ee 100644 --- a/include/audio.h +++ b/include/audio.h @@ -5,7 +5,11 @@ int laudioSetMasterVolume( lua_State *L ); /* Wave/Sound Loading. */ int laudioLoadSound( lua_State *L ); int laudioLoadWave( lua_State *L ); +int laudioIsWaveReady( lua_State *L ); int laudioLoadSoundFromWave( lua_State *L ); +int laudioIsSoundReady( lua_State *L ); +int laudioUnloadWave( lua_State *L ); +int laudioUnloadSound( lua_State *L ); int laudioExportWave( lua_State *L ); int laudioExportWaveAsCode( lua_State *L ); /* Wave/Sound management. */ @@ -22,6 +26,8 @@ int laudioWaveCopy( lua_State *L ); int laudioWaveCrop( lua_State *L ); /* Music management. */ int laudioLoadMusicStream( lua_State *L ); +int laudioIsMusicReady( lua_State *L ); +int laudioUnloadMusicStream( lua_State *L ); int laudioPlayMusicStream( lua_State *L ); int laudioIsMusicStreamPlaying( lua_State *L ); int laudioUpdateMusicStream( lua_State *L ); diff --git a/include/core.h b/include/core.h index 2afc4fe..f9b26bd 100644 --- a/include/core.h +++ b/include/core.h @@ -44,6 +44,8 @@ int lcoreSetLogLevelInvalid( lua_State *L ); int lcoreGetLogLevelInvalid( lua_State *L ); int lcoreOpenURL( lua_State *L ); int lcoreLoadBuffer( lua_State *L ); +int lcoreUnloadBuffer( lua_State *L ); +int lcoreIsGCUnloadEnabled( lua_State *L ); /* Cursor. */ int lcoreShowCursor( lua_State *L ); int lcoreHideCursor( lua_State *L ); @@ -62,6 +64,7 @@ int lcoreEndScissorMode( lua_State *L ); /* Shader. */ int lcoreLoadShader( lua_State *L ); int lcoreLoadShaderFromMemory( lua_State *L ); +int lcoreIsShaderReady( lua_State *L ); int lcoreBeginShaderMode( lua_State *L ); int lcoreEndShaderMode( lua_State *L ); int lcoreGetShaderLocation( lua_State *L ); @@ -72,6 +75,7 @@ int lcoreSetShaderValueMatrix( lua_State *L ); int lcoreSetShaderValueTexture( lua_State *L ); int lcoreSetShaderValue( lua_State *L ); int lcoreSetShaderValueV( lua_State *L ); +int lcoreUnloadShader( lua_State *L ); /* File. */ int lcoreGetBasePath( lua_State *L ); int lcoreFileExists( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index f8c94ac..5fe539f 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -57,6 +57,7 @@ Ray uluaGetRay( lua_State *L ); Ray uluaGetRayIndex( lua_State *L, int index ); NPatchInfo uluaGetNPatchInfo( lua_State *L ); NPatchInfo uluaGetNPatchInfoIndex( lua_State *L, int index ); +Buffer* uluaGetBuffer( lua_State *L, int index ); Image* uluaGetImage( lua_State *L, int index ); Texture* uluaGetTexture( lua_State *L, int index ); RenderTexture* uluaGetRenderTexture( lua_State *L, int index ); @@ -83,6 +84,7 @@ void uluaPushMatrix( lua_State *L, Matrix matrix ); void uluaPushRay( lua_State *L, Ray ray ); void uluaPushRayCollision( lua_State *L, RayCollision rayCol ); void uluaPushBoundingBox( lua_State *L, BoundingBox box ); +void uluaPushBuffer( lua_State *L, Buffer buffer ); void uluaPushImage( lua_State *L, Image image ); void uluaPushTexture( lua_State *L, Texture texture ); void uluaPushRenderTexture( lua_State *L, RenderTexture renderTexture ); diff --git a/include/models.h b/include/models.h index ba92732..f97e4a4 100644 --- a/include/models.h +++ b/include/models.h @@ -38,6 +38,7 @@ int lmodelsGenMeshKnot( lua_State *L ); int lmodelsGenMeshHeightmap( lua_State *L ); int lmodelsGenMeshCustom( lua_State *L ); int lmodelsUpdateMesh( lua_State *L ); +int lmodelsUnloadMesh( lua_State *L ); int lmodelsDrawMesh( lua_State *L ); int lmodelsDrawMeshInstanced( lua_State *L ); int lmodelsSetMeshColor( lua_State *L ); @@ -45,8 +46,11 @@ int lmodelsExportMesh( lua_State *L ); int lmodelsGetMeshBoundingBox( lua_State *L ); int lmodelsGenMeshTangents( lua_State *L ); /* Material. */ +int lmodelsGetMaterialDefault( lua_State *L ); int lmodelsLoadMaterialDefault( lua_State *L ); int lmodelsCreateMaterial( lua_State *L ); +int lmodelsIsMaterialReady( lua_State *L ); +int lmodelsUnloadMaterial( lua_State *L ); int lmodelsSetMaterialTexture( lua_State *L ); int lmodelsSetMaterialColor( lua_State *L ); int lmodelsSetMaterialValue( lua_State *L ); @@ -60,6 +64,8 @@ int lmodelsGetMaterialParams( lua_State *L ); /* Model. */ int lmodelsLoadModel( lua_State *L ); int lmodelsLoadModelFromMesh( lua_State *L ); +int lmodelsIsModelReady( lua_State *L ); +int lmodelsUnloadModel( lua_State *L ); int lmodelsDrawModel( lua_State *L ); int lmodelsDrawModelEx( lua_State *L ); int lmodelsSetModelMaterial( lua_State *L ); diff --git a/include/state.h b/include/state.h index 4b023aa..d7e1052 100644 --- a/include/state.h +++ b/include/state.h @@ -6,9 +6,12 @@ typedef struct { char *exePath; bool hasWindow; bool run; + bool gcUnload; lua_State *luaState; Vector2 resolution; int logLevelInvalid; + Font defaultFont; + Material defaultMaterial; /* Raylib GLFW input callback events. */ /* Window events. */ GLFWwindowsizefun raylibWindowSizeCallback; diff --git a/include/text.h b/include/text.h index 1c3ef40..1cfe4e8 100644 --- a/include/text.h +++ b/include/text.h @@ -5,6 +5,8 @@ int ltextGetFontDefault( lua_State *L ); int ltextLoadFont( lua_State *L ); int ltextLoadFontEx( lua_State *L ); int ltextLoadFontFromImage( lua_State *L ); +int ltextIsFontReady( lua_State *L ); +int ltextUnloadFont( lua_State *L ); /* Drawing. */ int ltextDrawFPS( lua_State *L ); int ltextDrawText( lua_State *L ); diff --git a/include/textures.h b/include/textures.h index 931058a..353026e 100644 --- a/include/textures.h +++ b/include/textures.h @@ -4,6 +4,8 @@ int ltexturesLoadImage( lua_State *L ); int ltexturesLoadImageFromTexture( lua_State *L ); int ltexturesLoadImageFromScreen( lua_State *L ); +int ltextureIsImageReady( lua_State *L ); +int ltextureUnloadImage( lua_State *L ); int ltexturesExportImage( lua_State *L ); int ltexturesExportImageAsCode( lua_State *L ); /* Image Generation. */ @@ -69,6 +71,9 @@ int ltexturesLoadTextureFromData( lua_State *L ); int ltexturesLoadRenderTexture( lua_State *L ); int ltexturesLoadRenderTextureFromData( lua_State *L ); int ltexturesIsTextureReady( lua_State *L ); +int ltextureUnloadTexture( lua_State *L ); +int ltexturesIsRenderTextureReady( lua_State *L ); +int ltextureUnloadRenderTexture( lua_State *L ); int ltexturesUpdateTexture( lua_State *L ); int ltexturesUpdateTextureRec( lua_State *L ); /* Texture Drawing. */ |
