added the readme

This commit is contained in:
2026-06-08 17:07:34 -04:00
commit 6655fd2886
1001 changed files with 253651 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef WINDOW_CLASS
#define WINDOW_CLASS
#include <iostream>
#include<glad/glad.h>
#include<GLFW/glfw3.h>
class Window {
public:
int height;
int width;
GLFWwindow* handle;
Window(int width, int height, const char* name) : height(height) , width(width) {
handle = glfwCreateWindow(width,height,name, NULL, NULL);
if (handle == NULL) {
std::cout << "WINDOW HANDLE IS NULL\n";
glfwTerminate();
throw - 1;
}
glfwMakeContextCurrent(handle);
}
~Window() {
glfwDestroyWindow(handle);
}
};
#endif