Added IMGUI

This commit is contained in:
2022-05-04 14:39:27 +02:00
parent 9c92cc05b7
commit af4a114fad
7 changed files with 90 additions and 8 deletions

View File

@ -18,9 +18,12 @@ class BarinkWindow{
BarinkWindow(const int width, const int height);
~BarinkWindow();
GLFWwindow* windowptr();
bool WindowShouldClose();
void Poll();
void SwapBuffers();
};

View File

@ -50,6 +50,11 @@ Width(width), Height(height), FullScreen(false){
BarinkWindow::~BarinkWindow(){
glfwTerminate();
}
GLFWwindow* BarinkWindow::windowptr()
{
return window;
}
bool BarinkWindow::WindowShouldClose(){
@ -58,6 +63,11 @@ bool BarinkWindow::WindowShouldClose(){
void BarinkWindow::Poll()
{
glfwSwapBuffers(window);
glfwPollEvents();
}
void BarinkWindow::SwapBuffers()
{
glfwSwapBuffers(window);
}