Commit Graph

15 Commits

Author SHA1 Message Date
nmlgc a0096e19c1 [Pipeline] bmp2arr: Emit 16- and 32-bit arrays in C++ mode
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:48:40 +02:00
nmlgc 3ea61a8fa7 [Pipeline] bmp2arr: Emit trailing commas in C modes
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:46:54 +02:00
nmlgc 73670108ae [Pipeline] bmp2arr: Add a C++ output format
This one will use the DotRect template from `planar.h` and generate a
single 16- or 32-dot value per row. Since this converter has a goal of
maximum portability, it makes sense to keep raw the multidimensional
C-style arrays around as a possible output format.

Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:45:14 +02:00
nmlgc caf48cf3ef [Pipeline] bmp2arr: Move C type generation into a single function
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:40:36 +02:00
nmlgc 47dc6a6285 [Pipeline] bmp2arr: Support sprite widths of 32 pixels
It's more appropriate to have a single check in the task verification
code.

Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:35:33 +02:00
nmlgc ec8668264c [Pipeline] bmp2arr: Fail if any non-#000/#FFF pixels are found
And that's all the minimum functionality I wanted to have.
Closes #8.

Part of P0113, funded by Lmocinemod.
2020-09-07 21:18:34 +02:00
nmlgc fea00067d7 [Pipeline] bmp2arr: Extend debug output to cover *all* relevant fields
And with that, we might even get away with not having command-line
help 😛

Part of P0113, funded by Lmocinemod.
2020-09-07 17:36:01 +02:00
nmlgc 23bf61b773 [Pipeline] bmp2arr: Add -q for silencing debug output on stderr
Part of P0113, funded by Lmocinemod.
2020-09-07 17:32:04 +02:00
nmlgc ea8d2466fe [Pipeline] bmp2arr: Require the output type to be provided explicitly
Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:45 +02:00
nmlgc 24699942e6 [Pipeline] bmp2arr: Introduce error codes, and a separate reporting function
Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:44 +02:00
nmlgc 66b72477d2 [Pipeline] bmp2arr: Use bitflags for the preshift/upside-down/debug BMP options
More ergonomic in initializer lists when used as a library.

Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:43 +02:00
Jonathan Campbell 3e0f8286df [Pipeline] bmp2arr: use malloc/free in a way that would make C++ compilers and their type checking happy 2020-07-09 00:39:06 -07:00
Jonathan Campbell 86c4d541a8 [Pipeline] bmp2arr: __BORLANDC__ and __TURBOC__ case 2020-07-09 00:37:00 -07:00
Jonathan Campbell 44b0313b38 [Pipeline] bmp2arr: write_sprite inner function should be private 2020-07-06 15:16:05 -07:00
Jonathan Campbell 2e4d0b3b8f [Pipeline] bmp2arr: conversion to lib finish 2020-07-06 15:14:50 -07:00