aboutsummaryrefslogtreecommitdiff
path: root/core/src/Entrypoint/Common.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-03-28 13:24:52 -0700
committerrtk0c <[email protected]>2021-03-28 13:24:52 -0700
commitbdcc81822adddf2c6ad7f10d9e090d913475c1e0 (patch)
tree91997b21958992f4e9e48839166ea4feaa0712b1 /core/src/Entrypoint/Common.cpp
parent442d2d75d71bbc057e667edc301a79fa1cc813be (diff)
Initial code structure
Diffstat (limited to 'core/src/Entrypoint/Common.cpp')
-rw-r--r--core/src/Entrypoint/Common.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/Entrypoint/Common.cpp b/core/src/Entrypoint/Common.cpp
new file mode 100644
index 0000000..62baf9d
--- /dev/null
+++ b/core/src/Entrypoint/Common.cpp
@@ -0,0 +1,11 @@
+#include "Common.hpp"
+
+#include <iostream>
+
+GLFWwindow* RenderingBackend::GetWindow() const {
+ return mWindow;
+}
+
+void RenderingBackend::GlfwErrorCallback(int error, const char* message) {
+ std::cerr << "GLFW Error " << error << ": " << message << "\n";
+}