Add Pica Texture Encoding Decoding
Supported Formats: A4, A8, L4, L8, RGB565, RGB888 RGBA8888 (for now) Add a .clang-format Move ctrff into a subdirectory Replace the BCLIM creation part with Pica encoder Fix non const RGB565ToRGBA issue
This commit is contained in:
@@ -28,7 +28,7 @@ CTRFF_API ctrff::u32 ctrff::TileIndex(const int &x, const int &y,
|
||||
|
||||
// TODO: Fix colors
|
||||
CTRFF_API void ctrff::RGB565toRGBA(std::vector<ctrff::u8> &img,
|
||||
ctrff::u16 *icon, const int &w,
|
||||
const ctrff::u16 *icon, const int &w,
|
||||
const int &h) {
|
||||
if (img.size() != (w * h * 4)) {
|
||||
img.clear();
|
||||
|
||||
Reference in New Issue
Block a user