gctex 0.3.12

gctex is a Rust crate designed for encoding and decoding texture formats used in the Nintendo GameCube and Wii games. The library provides C bindings, making it useful in both Rust and C/C++ based projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <string.h>

#include "dolemu/TextureDecoder/TextureDecoder.h"

namespace librii {
namespace image {

// X -> raw 8-bit RGBA
void decode(u8* dst, const u8* src, u32 width, u32 height, u32 texformat,
            const u8* tlut, u32 tlutformat) {
  TexDecoder_Decode(dst, src, static_cast<int>(width), static_cast<int>(height),
                    static_cast<TextureFormat>(texformat), tlut,
                    static_cast<TLUTFormat>(tlutformat));
}

} // namespace image
} // namespace librii