summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 9999247..e83bb35 100644
--- a/src/core.c
+++ b/src/core.c
@@ -588,6 +588,19 @@ int lcoreSetTargetFPS( lua_State *L ) {
}
/*
+> FPS = RL_GetFPS()
+
+Get current FPS
+
+- Success return int
+*/
+int lcoreGetFPS( lua_State *L ) {
+ lua_pushinteger( L, GetFPS() );
+
+ return 1;
+}
+
+/*
> delta = RL_GetFrameTime()
Get time in seconds for last frame drawn ( Delta time )
@@ -2804,16 +2817,16 @@ int lcoreSetCamera3DProjection( lua_State *L ) {
}
/*
-> success = RL_SetCamera3DMode( camera3D camera, int mode )
+> success = RL_SetCameraMode( camera3D camera, int mode )
Set camera mode ( CAMERA_CUSTOM, CAMERA_FREE, CAMERA_ORBITAL... )
- Failure return false
- Success return true
*/
-int lcoreSetCamera3DMode( lua_State *L ) {
+int lcoreSetCameraMode( lua_State *L ) {
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
- TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DMode( camera3D camera, int mode )" );
+ TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCameraMode( camera3D camera, int mode )" );
lua_pushboolean( L, false );
return 1;
}