#include "platform.h" #include static GLFWwindow* window = nullptr; void platform_init() { glfwInit(); window = glfwCreateWindow(1280, 720, "demo64k", nullptr, nullptr); } void platform_shutdown() { glfwDestroyWindow(window); glfwTerminate(); } void platform_poll() { glfwPollEvents(); } bool platform_should_close() { return glfwWindowShouldClose(window); } GLFWwindow* platform_get_window() { return window; } double platform_get_time() { return glfwGetTime(); }