separate all utility headers and sources
This commit is contained in:
24
cosets/include/window.hpp
Normal file
24
cosets/include/window.hpp
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user