From 4367cf2bbbb64c4a2a86fe1bb2846d2c34136f01 Mon Sep 17 00:00:00 2001 From: red031000 Date: Mon, 1 Mar 2021 20:40:15 +0000 Subject: NCER processing --- tools/nitrogfx/options.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'tools/nitrogfx/options.h') diff --git a/tools/nitrogfx/options.h b/tools/nitrogfx/options.h index 8c1e7a0e..9b97529c 100644 --- a/tools/nitrogfx/options.h +++ b/tools/nitrogfx/options.h @@ -34,5 +34,51 @@ struct PngToNtrOptions { bool scanned; }; +struct Attr0 { + int YCoordinate; + bool Rotation; + bool SizeDisable; + int Mode; + bool Mosaic; + int Colours; + int Shape; +}; + +struct Attr1 { + int XCoordinate; + int RotationScaling; + int Size; +}; + +struct Attr2 { + int CharName; + int Priority; + int Palette; +}; + +struct OAM { + struct Attr0 attr0; + struct Attr1 attr1; + struct Attr2 attr2; +}; + +struct Cell { + short readOnly; + short maxX; + short maxY; + short minX; + short minY; + struct OAM oam; + char *label; +}; + +struct JsonToCellOptions { + bool label; + bool extended; + int imageHeight; + int imageWidth; + int cellCount; + struct Cell **cells; +}; #endif // OPTIONS_H -- cgit v1.2.3 From eeddf7382ed11b597814342c719862895dd4412f Mon Sep 17 00:00:00 2001 From: red031000 Date: Wed, 3 Mar 2021 17:21:01 +0000 Subject: NSCR processing --- tools/nitrogfx/options.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/nitrogfx/options.h') diff --git a/tools/nitrogfx/options.h b/tools/nitrogfx/options.h index 9b97529c..f4626df9 100644 --- a/tools/nitrogfx/options.h +++ b/tools/nitrogfx/options.h @@ -81,4 +81,11 @@ struct JsonToCellOptions { struct Cell **cells; }; +struct JsonToScreenOptions { + int height; + int width; + unsigned short *data; + int bitdepth; +}; + #endif // OPTIONS_H -- cgit v1.2.3