mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-10-01 20:50:10 +00:00
Setup basic testing framework
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef TERMG_PRIVATE_H
|
||||
#define TERMG_PRIVATE_H
|
||||
#ifndef GLERMINAL_PRIVATE_H
|
||||
#define GLERMINAL_PRIVATE_H
|
||||
|
||||
#include "glerminal.h"
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace glerminal
|
||||
glerminal& operator=(glerminal&&) = delete;
|
||||
|
||||
void run();
|
||||
void quit();
|
||||
|
||||
void flush();
|
||||
|
||||
@@ -98,4 +99,4 @@ namespace glerminal
|
||||
};
|
||||
}
|
||||
|
||||
#endif//TERMG_PRIVATE_H
|
||||
#endif//GLERMINAL_PRIVATE_H
|
@@ -194,6 +194,11 @@ namespace glerminal
|
||||
}
|
||||
}
|
||||
|
||||
void glerminal::quit()
|
||||
{
|
||||
glfwSetWindowShouldClose(m_window, GLFW_TRUE);
|
||||
}
|
||||
|
||||
void glerminal::flush()
|
||||
{
|
||||
glNamedBufferData(m_sprites_instance_vbo, sizeof(m_cells), m_cells, GL_STREAM_DRAW);
|
||||
@@ -664,6 +669,13 @@ void glerminal_run(glerminal_init_cb init, glerminal_main_cb main)
|
||||
}
|
||||
}
|
||||
|
||||
void glerminal_quit()
|
||||
{
|
||||
if (!GLERMINAL_G) { return; }
|
||||
|
||||
GLERMINAL_G->quit();
|
||||
}
|
||||
|
||||
void glerminal_flush()
|
||||
{
|
||||
if (!GLERMINAL_G) { return; }
|
||||
|
Reference in New Issue
Block a user