separate all utility headers and sources

This commit is contained in:
2019-09-17 00:04:02 -04:00
parent 8cb5dd87ad
commit cd2cbf85d0
15 changed files with 162 additions and 98 deletions

24
cosets/include/window.hpp Normal file
View File

@@ -0,0 +1,24 @@
#pragma once
#include "glad/glad.h"
#include <GLFW/glfw3.h>
class Window {
protected:
GLFWwindow *_window = nullptr;
public:
virtual void init();
virtual void update();
virtual void render();
virtual void deinit();
void getBounds(int &width, int &height);
void swapbuffers();
void run();
};