From 30d425aa26a3aa802cb2ff55f1f7655be056f3ed Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 31 Mar 2022 13:55:02 +0300 Subject: Screen-space related functions for 3DCamera. --- include/core.h | 4 ++++ include/lua_core.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/core.h b/include/core.h index c443542..1f0691c 100644 --- a/include/core.h +++ b/include/core.h @@ -128,3 +128,7 @@ int lcoreGetGestureDragVector( lua_State *L ); int lcoreGetGestureDragAngle( lua_State *L ); int lcoreGetGesturePinchVector( lua_State *L ); int lcoreGetGesturePinchAngle( lua_State *L ); +/* Screen-space. */ +int lcoreGetMouseRay( lua_State *L ); +int lcoreGetCameraMatrix( lua_State *L ); +int lcoreGetWorldToScreen( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index 694b94d..335ee49 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -24,6 +24,7 @@ void uluaPushVector3( lua_State *L, Vector3 vector ); void uluaPushVector4( lua_State *L, Vector4 vector ); void uluaPushRectangle( lua_State *L, Rectangle rect ); void uluaPushMatrix( lua_State *L, Matrix matrix ); +void uluaPushRay( lua_State *L, Ray ray ); void uluaPushRayCollision( lua_State *L, RayCollision rayCol ); int uluaGetTableLen( lua_State *L ); -- cgit v1.2.3