Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions
iplfontutil.c File Reference
#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[])
 

Macro Definition Documentation

◆ GETBIT

#define GETBIT (   buf,
  idx 
)    ((buf[(idx)/8] >> (7-((idx)%8))) & 1)

◆ IPL3_FONT_CHAR_H

#define IPL3_FONT_CHAR_H   14

◆ IPL3_FONT_CHAR_NBITS

#define IPL3_FONT_CHAR_NBITS   (IPL3_FONT_CHAR_NPIXELS + 2)

◆ IPL3_FONT_CHAR_NBYTES

#define IPL3_FONT_CHAR_NBYTES   (IPL3_FONT_CHAR_NBITS / 8)

◆ IPL3_FONT_CHAR_NPIXELS

#define IPL3_FONT_CHAR_NPIXELS   (IPL3_FONT_CHAR_W * IPL3_FONT_CHAR_H)

◆ IPL3_FONT_CHAR_W

#define IPL3_FONT_CHAR_W   13

◆ IPL3_FONT_FILE_SIZE

#define IPL3_FONT_FILE_SIZE   ((IPL3_FONT_NCHARS * IPL3_FONT_CHAR_NBYTES) + 0x12)

◆ IPL3_FONT_NCHARS

#define IPL3_FONT_NCHARS   50

◆ SETBIT

#define SETBIT (   buf,
  idx 
)    buf[(idx)/8] |= (1 << (7-((idx)%8)))

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION

◆ STBI_NO_HDR

#define STBI_NO_HDR

◆ STBI_NO_LINEAR

#define STBI_NO_LINEAR

◆ STBI_NO_PIC

#define STBI_NO_PIC

◆ STBI_NO_PNM

#define STBI_NO_PNM

◆ STBI_NO_PSD

#define STBI_NO_PSD

◆ STBI_NO_TGA

#define STBI_NO_TGA

Function Documentation

◆ ipl3font_decode()

int ipl3font_decode ( const char binPath,
const char imgPath 
)

◆ ipl3font_encode()

int ipl3font_encode ( const char imgPath,
const char binPath 
)

◆ main()

int main ( int  argc,
const char argv[] 
)