![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stb/stb_image_write.h>
#include <stb/stb_image.h>
Macros | |
#define | STBI_NO_LINEAR |
#define | STBI_NO_PSD |
#define | STBI_NO_TGA |
#define | STBI_NO_HDR |
#define | STBI_NO_PIC |
#define | STBI_NO_PNM |
#define | STB_IMAGE_WRITE_IMPLEMENTATION |
#define | STB_IMAGE_IMPLEMENTATION |
#define | GETBIT(buf, idx) ((buf[(idx)/8] >> (7-((idx)%8))) & 1) |
#define | SETBIT(buf, idx) buf[(idx)/8] |= (1 << (7-((idx)%8))) |
#define | IPL3_FONT_NCHARS 50 |
#define | IPL3_FONT_CHAR_W 13 |
#define | IPL3_FONT_CHAR_H 14 |
#define | IPL3_FONT_CHAR_NPIXELS (IPL3_FONT_CHAR_W * IPL3_FONT_CHAR_H) |
#define | IPL3_FONT_CHAR_NBITS (IPL3_FONT_CHAR_NPIXELS + 2) |
#define | IPL3_FONT_CHAR_NBYTES (IPL3_FONT_CHAR_NBITS / 8) |
#define | IPL3_FONT_FILE_SIZE ((IPL3_FONT_NCHARS * IPL3_FONT_CHAR_NBYTES) + 0x12) |
Functions | |
int | ipl3font_decode (const char *binPath, const char *imgPath) |
int | ipl3font_encode (const char *imgPath, const char *binPath) |
int | main (int argc, const char *argv[]) |
#define GETBIT | ( | buf, | |
idx | |||
) | ((buf[(idx)/8] >> (7-((idx)%8))) & 1) |
#define IPL3_FONT_CHAR_H 14 |
#define IPL3_FONT_CHAR_NBITS (IPL3_FONT_CHAR_NPIXELS + 2) |
#define IPL3_FONT_CHAR_NBYTES (IPL3_FONT_CHAR_NBITS / 8) |
#define IPL3_FONT_CHAR_NPIXELS (IPL3_FONT_CHAR_W * IPL3_FONT_CHAR_H) |
#define IPL3_FONT_CHAR_W 13 |
#define IPL3_FONT_FILE_SIZE ((IPL3_FONT_NCHARS * IPL3_FONT_CHAR_NBYTES) + 0x12) |
#define IPL3_FONT_NCHARS 50 |
#define SETBIT | ( | buf, | |
idx | |||
) | buf[(idx)/8] |= (1 << (7-((idx)%8))) |
#define STB_IMAGE_IMPLEMENTATION |
#define STB_IMAGE_WRITE_IMPLEMENTATION |
#define STBI_NO_HDR |
#define STBI_NO_LINEAR |
#define STBI_NO_PIC |
#define STBI_NO_PNM |
#define STBI_NO_PSD |
#define STBI_NO_TGA |