summaryrefslogtreecommitdiff
path: root/src/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform.cpp')
-rw-r--r--src/platform.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/platform.cpp b/src/platform.cpp
deleted file mode 100644
index 237aaf8..0000000
--- a/src/platform.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "platform.h"
-#include <GLFW/glfw3.h>
-
-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();
-}