update flake.nix
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
#include "Archimedes.h"
|
||||
#include "windowGLFW.h"
|
||||
|
||||
|
||||
Window::Window() {
|
||||
if(!glfwInit())
|
||||
if(!glfwInit()) {
|
||||
std::cout << "glfwInit failed!\n";
|
||||
std::abort();
|
||||
}
|
||||
w = glfwCreateWindow(640, 480, "Archimedes", NULL, NULL);
|
||||
}
|
||||
|
||||
bool Window::close() {
|
||||
return glfwShouldClose(w);
|
||||
}
|
||||
|
||||
Window::~Window() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user