From ed4636fa812e64c5391ee9f408092990f33277b4 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 4 May 2022 17:21:49 +0300 Subject: Camera2D. --- include/core.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'include/core.h') diff --git a/include/core.h b/include/core.h index 8cb2977..0b03de8 100644 --- a/include/core.h +++ b/include/core.h @@ -82,7 +82,20 @@ int lcoreGetPrevDirectoryPath( lua_State *L ); int lcoreGetWorkingDirectory( lua_State *L ); int lcoreGetDirectoryFiles( lua_State *L ); int lcoreGetFileModTime( lua_State *L ); -/* Camera. */ +/* Camera2D. */ +int lcoreCreateCamera2D( lua_State *L ); +int lcoreUnloadCamera2D( lua_State *L ); +int lcoreBeginMode2D( lua_State *L ); +int lcoreEndMode2D( lua_State *L ); +int lcoreSetCamera2DTarget( lua_State *L ); +int lcoreSetCamera2DOffset( lua_State *L ); +int lcoreSetCamera2DRotation( lua_State *L ); +int lcoreSetCamera2DZoom( lua_State *L ); +int lcoreGetCamera2DTarget( lua_State *L ); +int lcoreGetCamera2DOffset( lua_State *L ); +int lcoreGetCamera2DRotation( lua_State *L ); +int lcoreGetCamera2DZoom( lua_State *L ); +/* Camera3D. */ int lcoreCreateCamera3D( lua_State *L ); int lcoreUnloadCamera3D( lua_State *L ); int lcoreBeginMode3D( lua_State *L ); @@ -134,4 +147,8 @@ int lcoreGetGesturePinchAngle( lua_State *L ); /* Screen-space. */ int lcoreGetMouseRay( lua_State *L ); int lcoreGetCameraMatrix( lua_State *L ); +int lcoreGetCameraMatrix2D( lua_State *L ); int lcoreGetWorldToScreen( lua_State *L ); +int lcoreGetWorldToScreenEx( lua_State *L ); +int lcoreGetWorldToScreen2D( lua_State *L ); +int lcoreGetScreenToWorld2D( lua_State *L ); -- cgit v1.2.3