mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2024-11-14 13:40:04 +00:00
36 lines
485 B
C++
36 lines
485 B
C++
#include <glerminal.h>
|
|
|
|
#include <test-common.h>
|
|
|
|
#include <iostream>
|
|
|
|
namespace
|
|
{
|
|
void init()
|
|
{
|
|
if (!glerminal_load_sprites_file("resources/image.png"))
|
|
{
|
|
std::cout << "Failed to load texture" << std::endl;
|
|
}
|
|
|
|
for (int i = 0; i < GRID_HEIGHT; i++)
|
|
{
|
|
glerminal_set(i, i, 0, 1);
|
|
}
|
|
|
|
glerminal_flush();
|
|
|
|
glerminal_test_save_image();
|
|
|
|
glerminal_quit();
|
|
}
|
|
|
|
void mainloop(float) {}
|
|
}
|
|
|
|
int main()
|
|
{
|
|
glerminal_run(init, mainloop, nullptr, nullptr);
|
|
|
|
return 0;
|
|
} |