로깅과 vulkan validation layer 설정 끝
This commit is contained in:
@@ -7,8 +7,15 @@
|
||||
#include "precomp.h"
|
||||
|
||||
namespace veng {
|
||||
void glfw_error_callback(std::int32_t error_code, gsl::czstring message) {
|
||||
spdlog::error("Glfw Validation: {}", message);
|
||||
}
|
||||
|
||||
GlfwInitialization::GlfwInitialization() {
|
||||
glfwSetErrorCallback(glfw_error_callback);
|
||||
if (glfwInit() != GLFW_TRUE) std::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
GlfwInitialization::~GlfwInitialization() { glfwTerminate(); }
|
||||
|
||||
} // namespace veng
|
||||
|
||||
Reference in New Issue
Block a user