vulkan instance 까지 생성 완료
This commit is contained in:
14
src/glfw/glfw_initialization.cpp
Normal file
14
src/glfw/glfw_initialization.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "glfw/glfw_initialization.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
namespace veng {
|
||||
GlfwInitialization::GlfwInitialization() {
|
||||
if (glfwInit() != GLFW_TRUE) std::exit(EXIT_FAILURE);
|
||||
}
|
||||
GlfwInitialization::~GlfwInitialization() { glfwTerminate(); }
|
||||
} // namespace veng
|
||||
Reference in New Issue
Block a user