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, i, 0, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
glerminal_flush();
|
|
|
|
|
|
|
|
glerminal_test_save_image();
|
|
|
|
|
|
|
|
glerminal_quit();
|
|
|
|
}
|
|
|
|
|
|
|
|
void mainloop(float) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2024-05-30 14:57:36 +00:00
|
|
|
glerminal_run(init, mainloop, nullptr, nullptr);
|
2024-05-26 03:16:23 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|