45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
#pragma once
|
|
#include <sys/types.h>
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <libgte.h>
|
|
#include <libetc.h>
|
|
#include <libgpu.h>
|
|
#include <libapi.h>
|
|
#include <malloc.h>
|
|
#include <kernel.h>
|
|
// CD library
|
|
#include <libcd.h>
|
|
|
|
#define setRGB(p, r0, g0, b0) \
|
|
(p)->r = r0, (p)->g = g0, (p)->b = b0
|
|
|
|
#define VMODE 0
|
|
//~ #define VMODE 0 // Video Mode : 0 : NTSC, 1: PAL
|
|
#define SCREENXRES 320 // Screen width
|
|
#define SCREENYRES (240 + (VMODE << 4)) // Screen height : If VMODE is 0 = 240, if VMODE is 1 = 256
|
|
#define CENTERX SCREENXRES/2 // Center of screen on x
|
|
#define CENTERY SCREENYRES/2 // Center of screen on y
|
|
#define MARGINX 0 // margins for text display
|
|
#define MARGINY 32
|
|
#define FONTSIZE 18 * 7 // Text Field Height
|
|
#define OTLEN 8 // Ordering Table Length
|
|
|
|
extern DRAWENV draw[2];
|
|
extern char primbuff[2][32768];
|
|
extern char *nextpri;
|
|
extern u_long ot[2][OTLEN];
|
|
extern uint8_t db;
|
|
extern CVECTOR BGcolor;
|
|
|
|
enum OverlayNumber {
|
|
MOTHERSHIP = -1,
|
|
OVERLAY_HELLO = 0,
|
|
OVERLAY_TILE = 1,
|
|
OVERLAY_POLY = 2,
|
|
};
|
|
extern enum OverlayNumber next_overlay;
|
|
|
|
extern void init(void);
|
|
extern void display(void);
|