mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-10-01 20:50:10 +00:00
Add return value for texture loading
This commit is contained in:
@@ -2,11 +2,16 @@
|
||||
|
||||
#include <test-common.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace
|
||||
{
|
||||
void init()
|
||||
{
|
||||
glerminal_load_sprites_file("resources/image.png");
|
||||
if (!glerminal_load_sprites_file("resources/image.png"))
|
||||
{
|
||||
std::cout << "Failed to load texture" << std::endl;
|
||||
}
|
||||
|
||||
for (int i = 0; i < GRID_HEIGHT; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user