mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
examples: Simplify GRF loading example
This commit is contained in:
parent
488f5c7d8f
commit
d432916f0a
@ -66,18 +66,15 @@ int main(void)
|
||||
Material2 = NE_MaterialCreate();
|
||||
Palette2 = NE_PaletteCreate();
|
||||
|
||||
int ret;
|
||||
ret = NE_MaterialTexLoadGRF(Material1, NULL, NE_TEXGEN_TEXCOORD,
|
||||
"a1rgb5_png.grf");
|
||||
if (ret == 0)
|
||||
if (NE_MaterialTexLoadGRF(Material1, NULL, NE_TEXGEN_TEXCOORD,
|
||||
"a1rgb5_png.grf") == 0)
|
||||
{
|
||||
printf("Failed to load GRF 1\n");
|
||||
WaitLoop();
|
||||
}
|
||||
|
||||
ret = NE_MaterialTexLoadGRF(Material2, Palette2, NE_TEXGEN_TEXCOORD,
|
||||
"a3pal32_png.grf");
|
||||
if (ret == 0)
|
||||
if (NE_MaterialTexLoadGRF(Material2, Palette2, NE_TEXGEN_TEXCOORD,
|
||||
"a3pal32_png.grf") == 0)
|
||||
{
|
||||
printf("Failed to load GRF 2\n");
|
||||
WaitLoop();
|
||||
|
Loading…
Reference in New Issue
Block a user