diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 05e27da..fd3a460 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,8 @@ #include <glad/glad.h> #include <GLFW/glfw3.h> +#include "input.h" + #include <iostream> void framebuffer_size_callback(GLFWwindow* window, int width, int height) @@ -14,7 +16,7 @@ int main() { glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - GLFWwindow* window = glfwCreateWindow(800, 600, "Yep", NULL, NULL); + GLFWwindow* window = glfwCreateWindow(800, 600, "Ogle", NULL, NULL); if (window == NULL) { std::cout << "Failed to create GLFW window" << std::endl; @@ -33,8 +35,14 @@ int main() { glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); + // game loop while(!glfwWindowShouldClose(window)) { + processInput(window); + + glClearColor(0.2f, 0.3f, 0.3f, 1.0f); + glClear(GL_COLOR_BUFFER_BIT); + glfwSwapBuffers(window); glfwPollEvents(); } |
