aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-10 18:37:40 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-10 18:37:40 +0000
commit5fe329fe40c296a4a3dce9bc5543419ac954e4b0 (patch)
tree5fac3b692fecc7899f8c746e2116cdf6e2eee7b1 /yage/core/window.cpp
parenta62fbea8d40f623ffcd60eced63f295cd55db084 (diff)
downloadYAGE-5fe329fe40c296a4a3dce9bc5543419ac954e4b0.tar.gz
YAGE-5fe329fe40c296a4a3dce9bc5543419ac954e4b0.zip
[Engine] [Docs] Adding documentation and continuing work on ECS.
Diffstat (limited to 'yage/core/window.cpp')
-rw-r--r--yage/core/window.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/yage/core/window.cpp b/yage/core/window.cpp
index 84cd66d7..c55b1ad1 100644
--- a/yage/core/window.cpp
+++ b/yage/core/window.cpp
@@ -39,15 +39,10 @@ Window::Window() = default;
Window::~Window()
{
glfwDestroyWindow(window_);
- glfwTerminate();
}
void Window::create(std::string window_name, int width, int height)
{
- if (glfwInit() == GLFW_FALSE) {
- throw runtime_error("GLFW Initialisation failed");
- }
-
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);