Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/engine/platform/glfw/platform.cpp

15 lines
282 B
C++
Raw Normal View History

2024-01-03 16:05:02 -05:00
#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());
}