3dcam-headers/defines.h

90 lines
1.2 KiB
C
Raw Normal View History

2021-04-20 19:11:18 +02:00
#define VMODE 0 // 0 == NTSC, 1 == PAL
#define VSYNC 0
2021-04-10 14:22:48 +02:00
#define SCREENXRES 320
#define SCREENYRES 240
#define CENTERX SCREENXRES/2
#define CENTERY SCREENYRES/2
#define FOV CENTERX
2021-04-20 19:11:18 +02:00
#define CLEAR_COLOR_R 0
#define CLEAR_COLOR_G 0
#define CLEAR_COLOR_B 0
// Debug Font
#define FNT_VRAM_X 960
#define FNT_VRAM_Y 256
#define FNT_SCR_X 16
#define FNT_SCR_Y 192
#define FNT_SCR_W 240
#define FNT_SCR_H 32
#define FNT_SCR_BG 0
2021-04-10 14:22:48 +02:00
2021-04-20 19:11:18 +02:00
#define FNT_SCR_MAX_CHAR 256
// Ordering table
2021-04-10 14:22:48 +02:00
#define OT2LEN 8
#define OTLEN 256
2021-04-20 19:11:18 +02:00
#define PRIMBUFFLEN 4096 * sizeof(POLY_GT4) // Maximum number of POLY_GT3 primitives
2021-04-10 14:22:48 +02:00
2021-04-20 19:11:18 +02:00
// Fog
2021-04-10 14:22:48 +02:00
2021-04-20 19:11:18 +02:00
#define FOG_NEAR 1200
2021-04-18 23:41:28 +02:00
2021-04-20 19:11:18 +02:00
#define FOG_FAR 1600
// Physics
#define GRAVITY 10
#define SCALE 4
2021-04-18 23:41:28 +02:00
2021-04-20 19:11:18 +02:00
// Pad codes defines
2021-04-18 23:41:28 +02:00
// Applied on PADL
#define PadSelect ( 1 )
#define PadStart ( 1 << 3 )
// Up, Right, Down, Left will be used on PADL (left side of pad )and PADR (right side of pad)
#define PadUp ( 1 << 4 )
#define PadRight ( 1 << 5 )
#define PadDown ( 1 << 6 )
#define PadLeft ( 1 << 7 )
#define PadR3 ( 1 << 2 )
#define PadL3 ( 1 << 1 )
// Triggers applied on PADR
#define PadShldL1 ( 1 << 2 )
#define PadShldL2 ( 1 )
#define PadShldR1 ( 1 << 3 )
#define PadShldR2 ( 1 << 1 )