nitro-engine/examples/loading/filesystem_multiple_textures/assets.sh
Antonio Niño Díaz c037b79af4 examples: Stop using img2ds and switch to grit
img2ds is still required for the clear bitmap example because grit doesn't
support the clear depth format.
2024-01-27 18:25:38 +00:00

26 lines
496 B
Bash

#!/bin/sh
NITRO_ENGINE=$DEVKITPRO/nitro-engine
ASSETS=$NITRO_ENGINE/examples/assets
TOOLS=$NITRO_ENGINE/tools
OBJ2DL=$TOOLS/obj2dl/obj2dl.py
GRIT=grit
rm -rf nitrofiles
mkdir -p nitrofiles
python3 $OBJ2DL \
--input $ASSETS/cube.obj \
--output nitrofiles/cube.bin \
--texture 64 64
$GRIT \
graphics/spiral_blue_pal32.png \
-ftb -fh! -W1 \
-onitrofiles/spiral_blue_pal32
$GRIT \
graphics/spiral_red_pal32.png \
-ftb -fh! -W1 \
-onitrofiles/spiral_red_pal32