help
This commit is contained in:
@@ -6,8 +6,9 @@ namespace Archimedes {
|
||||
WindowGLFW::WindowGLFW() {
|
||||
|
||||
glfwSetErrorCallback([](int e, const char* m){
|
||||
std::cout << "GLFW Error: " << m << std::endl;
|
||||
});
|
||||
std::cout << "GLFW Error: " << m << std::endl;
|
||||
});
|
||||
|
||||
if(!glfwInit()) {
|
||||
std::cout << "glfwInit failed!\n";
|
||||
std::abort();
|
||||
@@ -18,7 +19,7 @@ namespace Archimedes {
|
||||
glfwTerminate();
|
||||
std::abort();
|
||||
}
|
||||
|
||||
std::cout << "Window Created!\n";
|
||||
glfwMakeContextCurrent(w);
|
||||
glfwSwapInterval(1);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Archimedes {
|
||||
|
||||
void getSize(int&, int&);
|
||||
|
||||
auto getWindow() { return w; }
|
||||
GLFWwindow* getWindow() { return w; }
|
||||
|
||||
private:
|
||||
GLFWwindow* w;
|
||||
|
||||
Reference in New Issue
Block a user