diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-06-12 22:04:51 +0200 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-06-12 22:04:51 +0200 |
| commit | 16609d6702f60ae714741888837a80756628400c (patch) | |
| tree | d8280715872eeb9287dc0c8c7fd4b0829d786c2d /src | |
| parent | 8d2de09f3dd29e0382ea6cdbaef86ea0d42c101d (diff) | |
| download | raylib-16609d6702f60ae714741888837a80756628400c.tar.gz raylib-16609d6702f60ae714741888837a80756628400c.zip | |
Revert "Make GetTime() public to be used externally"
This reverts commit 7999bbafa8c5333b69edb7881f64986f3e3e3d45.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 3 | ||||
| -rw-r--r-- | src/raylib.h | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -290,6 +290,7 @@ static void InitDisplay(int width, int height); // Initialize display de static void InitGraphics(void); // Initialize OpenGL graphics static void SetupFramebufferSize(int displayWidth, int displayHeight); static void InitTimer(void); // Initialize timer +static double GetTime(void); // Returns time since InitTimer() was run static bool GetKeyStatus(int key); // Returns if a key has been pressed static bool GetMouseButtonStatus(int button); // Returns if a mouse button has been pressed static void PollInputEvents(void); // Register user events @@ -2030,7 +2031,7 @@ static void InitTimer(void) } // Get current time measure (in seconds) since InitTimer() -double GetTime(void) +static double GetTime(void) { #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) return glfwGetTime(); diff --git a/src/raylib.h b/src/raylib.h index bfed533b..bfcb9bf5 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -582,7 +582,6 @@ Matrix GetCameraMatrix(Camera camera); // Returns camera tr void SetTargetFPS(int fps); // Set target FPS (maximum) float GetFPS(void); // Returns current FPS float GetFrameTime(void); // Returns time in seconds for one frame -double GetTime(void); // Returns time since InitTimer() was run internally Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value int GetHexValue(Color color); // Returns hexadecimal value for a Color |
