15 lines
282 B
C++
15 lines
282 B
C++
|
#include "platform.hpp"
|
||
|
|
||
|
#include <GLFW/glfw3.h>
|
||
|
|
||
|
void* Platform::m_pointer;
|
||
|
|
||
|
void Platform::WarpMouse(double x, double y)
|
||
|
{
|
||
|
glfwSetCursorPos(static_cast<GLFWwindow*>(Platform::GetUserData()), x, y);
|
||
|
}
|
||
|
|
||
|
float Platform::GetTime()
|
||
|
{
|
||
|
return static_cast<float>(glfwGetTime());
|
||
|
}
|