glerminal/tests/basic.cpp
Shylie 4811e4d970
All checks were successful
Make PNG / build-app (push) Successful in 56s
Allow 1-tile offscreen rendering to prevent pop-in effect
2024-06-14 12:20:31 -04:00

36 lines
478 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 + 1, i + 1, 0, 1);
}
glerminal_flush();
glerminal_test_save_image();
glerminal_quit();
}
void mainloop(double) {}
}
int main()
{
glerminal_run({init, mainloop});
return 0;
}