Files
Microtransactions64/s2d_print.h
farisawan-2000 2710f4e36a general updates
2020-12-28 13:27:53 -05:00

28 lines
968 B
C

#include <ultra64.h>
#include <PR/gs2dex.h>
#define SCALE "\x80" // SCALE (some scale)
#define ROTATE "\x81" // ROTATE (degrees) // TODO: maybe add axis?
#define TRANSLATE "\x82" // TRANSLATE (x) (y)
#define COLOR "\x83" // COLOR (r) (g) (b) (a)
#define DROPSHADOW "\x84" // DROPSHADOW (no params)
#define BACKGROUND "\x85" // BACKGROUND (w) (h) (alpha)
#define CH_SCALE '\x80'
#define CH_ROT '\x81'
#define CH_TRANSLATE '\x82'
#define CH_COLOR '\x83'
#define CH_DROPSHADOW '\x84'
#define CH_BACKGROUND '\x85'
// ASCII standard escape codes
#define CH_NEWLINE '\n'
#define CH_GET_NEXT(x) (*(++x))
#define CH_SKIP(x) {x++;}
extern void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len);
extern void s2d_print(int x, int y, const char *str, uObjMtx *buf);
extern void s2d_type_print(int x, int y, const char *str, uObjMtx *buf, int *pos);
extern void s2d_vsprint(int x, int y, uObjMtx *buf, const char *str, ...);