mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-25 04:28:30 +00:00
Revert "Make GetTime() public to be used externally"
This reverts commit 7999bbafa8
.
This commit is contained in:
@@ -290,6 +290,7 @@ static void InitDisplay(int width, int height); // Initialize display de
|
|||||||
static void InitGraphics(void); // Initialize OpenGL graphics
|
static void InitGraphics(void); // Initialize OpenGL graphics
|
||||||
static void SetupFramebufferSize(int displayWidth, int displayHeight);
|
static void SetupFramebufferSize(int displayWidth, int displayHeight);
|
||||||
static void InitTimer(void); // Initialize timer
|
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 GetKeyStatus(int key); // Returns if a key has been pressed
|
||||||
static bool GetMouseButtonStatus(int button); // Returns if a mouse button has been pressed
|
static bool GetMouseButtonStatus(int button); // Returns if a mouse button has been pressed
|
||||||
static void PollInputEvents(void); // Register user events
|
static void PollInputEvents(void); // Register user events
|
||||||
@@ -2030,7 +2031,7 @@ static void InitTimer(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get current time measure (in seconds) since InitTimer()
|
// Get current time measure (in seconds) since InitTimer()
|
||||||
double GetTime(void)
|
static double GetTime(void)
|
||||||
{
|
{
|
||||||
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
|
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
|
||||||
return glfwGetTime();
|
return glfwGetTime();
|
||||||
|
@@ -582,7 +582,6 @@ Matrix GetCameraMatrix(Camera camera); // Returns camera tr
|
|||||||
void SetTargetFPS(int fps); // Set target FPS (maximum)
|
void SetTargetFPS(int fps); // Set target FPS (maximum)
|
||||||
float GetFPS(void); // Returns current FPS
|
float GetFPS(void); // Returns current FPS
|
||||||
float GetFrameTime(void); // Returns time in seconds for one frame
|
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
|
Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value
|
||||||
int GetHexValue(Color color); // Returns hexadecimal value for a Color
|
int GetHexValue(Color color); // Returns hexadecimal value for a Color
|
||||||
|
Reference in New Issue
Block a user