summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2017-01-28 00:56:45 +0100
committerRay <[email protected]>2017-01-28 00:56:45 +0100
commitb681e8c2775bbb467c0f0607afd9840fda25c563 (patch)
tree870326fd3139e0711cb521958042e2bc43b70233 /src/raylib.h
parent37a64df7b9944d1d24872f07a7e713884b33432e (diff)
downloadraylib-b681e8c2775bbb467c0f0607afd9840fda25c563.tar.gz
raylib-b681e8c2775bbb467c0f0607afd9840fda25c563.zip
Implemented Wait()
Now program is halted (OS signal call) for required amount of time every frame, so CPU usage drops to zero, instead of using a busy wait loop.
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index f8f17eec..97130253 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -659,8 +659,8 @@ RLAPI Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Returns the
RLAPI Matrix GetCameraMatrix(Camera camera); // Returns camera transform matrix (view matrix)
RLAPI void SetTargetFPS(int fps); // Set target FPS (maximum)
-RLAPI float GetFPS(void); // Returns current FPS
-RLAPI float GetFrameTime(void); // Returns time in seconds for one frame
+RLAPI int GetFPS(void); // Returns current FPS (rounded value)
+RLAPI float GetFrameTime(void); // Returns time in seconds for one frame (rounded value)
RLAPI Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value
RLAPI int GetHexValue(Color color); // Returns hexadecimal value for a Color