mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Make timer init part of platform API
This is part of runtime platform selection because the null backend needs the timer implementation for the current OS.
This commit is contained in:
+2
-9
@@ -31,12 +31,10 @@
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
////// GLFW internal API //////
|
||||
////// GLFW platform API //////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Initialise timer
|
||||
//
|
||||
void _glfwInitTimerWin32(void)
|
||||
void _glfwPlatformInitTimer(void)
|
||||
{
|
||||
uint64_t frequency;
|
||||
|
||||
@@ -52,11 +50,6 @@ void _glfwInitTimerWin32(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
////// GLFW platform API //////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
uint64_t _glfwPlatformGetTimerValue(void)
|
||||
{
|
||||
if (_glfw.timer.win32.hasPC)
|
||||
|
||||
Reference in New Issue
Block a user