glerminal/tests/basic.cpp

36 lines
478 B
C++
Raw Normal View History

2024-05-26 03:16:23 +00:00
#include <glerminal.h>
#include <test-common.h>
2024-05-29 11:16:01 +00:00
#include <iostream>
2024-05-26 03:16:23 +00:00
namespace
{
void init()
{
2024-05-29 11:16:01 +00:00
if (!glerminal_load_sprites_file("resources/image.png"))
{
std::cout << "Failed to load texture" << std::endl;
}
2024-05-26 03:16:23 +00:00
for (int i = 0; i < GRID_HEIGHT; i++)
{
glerminal_set(i + 1, i + 1, 0, 1);
2024-05-26 03:16:23 +00:00
}
glerminal_flush();
glerminal_test_save_image();
glerminal_quit();
}
2024-06-11 04:41:21 +00:00
void mainloop(double) {}
2024-05-26 03:16:23 +00:00
}
int main()
{
2024-06-11 04:41:21 +00:00
glerminal_run({init, mainloop});
2024-05-26 03:16:23 +00:00
return 0;
}