randomouscrap98 / 3ds_junkdraw

My first foray into 3ds homebrew. Yet another drawing app
5 stars 0 forks source link

No "export page" function #6

Closed randomouscrap98 closed 3 years ago

randomouscrap98 commented 3 years ago

Figure out a way to export a whole page to a png (or otherwise). Perhaps create LAYERS+1 large arrays in memory, and redo all the drawing commands on the cpu in main memory on those buffers, then merge them all together into the last buffer and save that one. Note that the 3ds byte order matters if you're doing u32; it may be faster to simply work with the 4 byte aligned data and reconfigure it before passing it off to a png function.

randomouscrap98 commented 3 years ago

"Implemented" in https://github.com/randomouscrap98/3ds_junkdraw/commit/7c0274380b0007c2c3590cb05c352eb6fe657575

it is VERY slow