mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
tests: Use grit instead of img2ds
This commit is contained in:
parent
1c58dd09ed
commit
83928fd8aa
@ -23,8 +23,8 @@ TARGET := $(shell basename $(CURDIR))
|
||||
BUILD := build
|
||||
SOURCES := source
|
||||
INCLUDES := include
|
||||
DATA := data
|
||||
GRAPHICS :=
|
||||
DATA :=
|
||||
GRAPHICS := graphics
|
||||
AUDIO :=
|
||||
ICON :=
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
BINDIRS := data
|
||||
# This is a minimal makefile only used for the examples. If you want a makefile
|
||||
# for your project, take one from the templates inside examples/templates.
|
||||
|
||||
GFXDIRS := graphics
|
||||
|
||||
include ../../examples/Makefile.example.blocksds
|
||||
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
NITRO_ENGINE=$DEVKITPRO/nitro-engine
|
||||
TOOLS=$NITRO_ENGINE/tools
|
||||
IMG2DS=$TOOLS/img2ds/img2ds.py
|
||||
|
||||
python3 $IMG2DS \
|
||||
--input $NITRO_ENGINE/examples/assets/a3pal32.png \
|
||||
--name a3pal32 \
|
||||
--output data \
|
||||
--format A3PAL32
|
Binary file not shown.
Binary file not shown.
2
tests/clone_materials/graphics/a3pal32.grit
Normal file
2
tests/clone_materials/graphics/a3pal32.grit
Normal file
@ -0,0 +1,2 @@
|
||||
# 3 bits of alpha, 5 bits of color index
|
||||
-gx -gb -gBa3i5 -gT!
|
BIN
tests/clone_materials/graphics/a3pal32.png
Normal file
BIN
tests/clone_materials/graphics/a3pal32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -6,8 +6,7 @@
|
||||
|
||||
#include <NEMain.h>
|
||||
|
||||
#include "a3pal32_pal_bin.h"
|
||||
#include "a3pal32_tex_bin.h"
|
||||
#include "a3pal32.h"
|
||||
|
||||
#define NUM_CLONES 5
|
||||
|
||||
@ -39,8 +38,8 @@ int main(void)
|
||||
NE_MaterialTexLoad(Material[0],
|
||||
NE_A3PAL32, // Texture type
|
||||
64, 200, // Width, height (in pixels)
|
||||
NE_TEXGEN_TEXCOORD, (u8 *)a3pal32_tex_bin);
|
||||
NE_PaletteLoad(Palette, (u16 *)a3pal32_pal_bin, 32, NE_A3PAL32);
|
||||
NE_TEXGEN_TEXCOORD, a3pal32Bitmap);
|
||||
NE_PaletteLoad(Palette, a3pal32Pal, 32, NE_A3PAL32);
|
||||
NE_MaterialSetPalette(Material[0], Palette);
|
||||
|
||||
for (int i = 1; i < NUM_CLONES; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user