File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
1-getting-started/1-1-1-HelloWindow Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
33#include < GLFW/glfw3.h>
44
5+ #include < iostream>
6+
57Application::Application (const std::string& title)
68{
79 _title = title;
@@ -42,6 +44,7 @@ bool Application::Initialize()
4244{
4345 if (!glfwInit ())
4446 {
47+ std::cout << " GLFW: Failed to initialize\n " ;
4548 return false ;
4649 }
4750
@@ -60,6 +63,7 @@ bool Application::Initialize()
6063 nullptr );
6164 if (_window == nullptr )
6265 {
66+ std::cout << " GLFW: Failed to create a window\n " ;
6367 Cleanup ();
6468 return false ;
6569 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ bool Application::Initialize()
1818{
1919 if (!glfwInit ())
2020 {
21- std::cout << " GLFW: Failed to initialize GLFW \n " ;
21+ std::cout << " GLFW: Failed to initialize\n " ;
2222 return false ;
2323 }
2424
You can’t perform that action at this time.
0 commit comments