From 6915f3e27c7a2f4ed8c90909a9aa9cb8906d1c00 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 22 Oct 2023 22:13:27 +0300 Subject: rlgl Matrix state management. --- src/lua_core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index c254a9d..f8b25bb 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -1957,6 +1957,16 @@ void luaRegister() { assingGlobalFunction( "rlFramebufferAttach", lrlglFramebufferAttach ); assingGlobalFunction( "rlFramebufferComplete", lrlglFramebufferComplete ); assingGlobalFunction( "rlUnloadFramebuffer", lrlglUnloadFramebuffer ); + /* Matrix state management. */ + assingGlobalFunction( "rlGetMatrixModelview", lrlglGetMatrixModelview ); + assingGlobalFunction( "rlGetMatrixProjection", lrlglGetMatrixProjection ); + assingGlobalFunction( "rlGetMatrixTransform", lrlglGetMatrixTransform ); + assingGlobalFunction( "rlGetMatrixProjectionStereo", lrlglGetMatrixProjectionStereo ); + assingGlobalFunction( "rlGetMatrixViewOffsetStereo", lrlglGetMatrixViewOffsetStereo ); + assingGlobalFunction( "rlSetMatrixProjection", lrlglSetMatrixProjection ); + assingGlobalFunction( "rlSetMatrixModelview", lrlglSetMatrixModelview ); + assingGlobalFunction( "rlSetMatrixProjectionStereo", lrlglSetMatrixProjectionStereo ); + assingGlobalFunction( "rlSetMatrixViewOffsetStereo", lrlglSetMatrixViewOffsetStereo ); /* OpenGL */ /* Framebuffer management. */ -- cgit v1.2.3