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