lots of code for mesh management rendering and window input
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
using namespace core;
|
||||
using namespace inferno;
|
||||
|
||||
Window::Window(std::string title, int width, int height)
|
||||
{
|
||||
this->width = width;
|
||||
this->height = height;
|
||||
setupGLFW(title);
|
||||
|
||||
glfwSetKeyCallback(getGLFWWindow(), glfwKeyCallback);
|
||||
glfwSetCursorPosCallback(getGLFWWindow(), glfwMouseCallback);
|
||||
|
||||
setupImGui();
|
||||
}
|
||||
|
||||
@@ -147,6 +151,16 @@ void Window::shutdownGLFW()
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
void Window::glfwKeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Window::glfwMouseCallback(GLFWwindow* window, double xpos, double ypos)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Window::glfwErrorCallback(int error, const char* description) {
|
||||
spdlog::error("[GLFW {0}] {1}", error, description);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user