TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Window()

Window::Window ( std::string  title = "Window")

Definition at line 37 of file Window.cpp.

38{
39 InitGLFW();
40 m_Window = glfwCreateWindow(640, 480, title.c_str(), NULL, NULL);
41
42 if (!m_Window)
43 {
44 glfwTerminate();
45 std::cout << "Error in creating window!" << std::endl;
46 exit(-1);
47 }
48
49 isActive = true;
50 glfwMakeContextCurrent(m_Window);
51}