Initial commit
This commit is contained in:
commit
fce29361f6
35 changed files with 59905 additions and 0 deletions
27
include/display/base_window.hpp
Normal file
27
include/display/base_window.hpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include "glad.h"
|
||||
#include "glfw3.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_impl_glfw.h"
|
||||
#include "imgui_impl_opengl3.h"
|
||||
#include <string>
|
||||
|
||||
class BaseWindow {
|
||||
public:
|
||||
int windowWidth, windowHeight;
|
||||
std::string windowTitle;
|
||||
GLFWwindow* windowHandle;
|
||||
|
||||
public:
|
||||
BaseWindow();
|
||||
BaseWindow(int width, int height, std::string title);
|
||||
int Run();
|
||||
|
||||
protected:
|
||||
virtual void Initialize() = 0;
|
||||
virtual void LoadContent() = 0;
|
||||
virtual void Update() = 0;
|
||||
virtual void Render() = 0;
|
||||
virtual void Unload() = 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue