From 917ce853fcfb212e2343b6b2dac816b14ee50e46 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 15 Dec 2023 12:52:28 +0200 Subject: Rest of rlRenderBatch functions. --- include/lrlgl.h | 4 ++++ include/lua_core.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/lrlgl.h b/include/lrlgl.h index 57e7060..71d9641 100644 --- a/include/lrlgl.h +++ b/include/lrlgl.h @@ -84,6 +84,10 @@ int lrlglGetTextureIdDefault( lua_State *L ); int lrlglGetShaderIdDefault( lua_State *L ); int lrlglGetShaderLocsDefault( lua_State *L ); /* Render batch management */ +int lrlglLoadRenderBatch( lua_State *L ); +int lrlglUnloadRenderBatch( lua_State *L ); +int lrlglDrawRenderBatch( lua_State *L ); +int lrlglSetRenderBatchActive( lua_State *L ); int lrlglDrawRenderBatchActive( lua_State *L ); int lrlglCheckRenderBatchLimit( lua_State *L ); int lrlglSetTexture( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index df3f1d6..ba56f27 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -64,6 +64,7 @@ Light* uluaGetLight( lua_State *L, int index ); Material* uluaGetMaterial( lua_State *L, int index ); Model* uluaGetModel( lua_State *L, int index ); ModelAnimation* uluaGetModelAnimation( lua_State *L, int index ); +rlRenderBatch* uluaGetRLRenderBatch( lua_State *L, int index ); /* Lua push types. */ void uluaPushColor( lua_State *L, Color color ); void uluaPushVector2( lua_State *L, Vector2 vector ); @@ -94,5 +95,6 @@ void uluaPushMaterial( lua_State *L, Material material ); void uluaPushMesh( lua_State *L, Mesh mesh ); void uluaPushModel( lua_State *L, Model model ); void uluaPushModelAnimation( lua_State *L, ModelAnimation modelAnimation ); +void uluaPushRLRenderBatch( lua_State *L, rlRenderBatch renderBatch ); /* Utils. */ int uluaGetTableLen( lua_State *L, int index ); -- cgit v1.2.3