callbacks.cpp 354 B

123456789101112131415161718
  1. #include "callbacks.h"
  2. void error_callback(int error, const char* description)
  3. {
  4. spdlog::error("Error: {}\n", description);
  5. }
  6. void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
  7. {
  8. }
  9. void framebuffer_size_callback(GLFWwindow* window, int width, int height)
  10. {
  11. (void)window;
  12. glViewport(0, 0, width, height);
  13. }