2020-03-27 21:47:29 +01:00
|
|
|
#ifndef DRAW_H
|
|
|
|
#define DRAW_H
|
|
|
|
|
2020-04-22 15:50:56 +02:00
|
|
|
extern SVECTOR day_vectors[4];
|
|
|
|
extern SVECTOR night_vectors[4];
|
|
|
|
extern SVECTOR day_colours[4];
|
|
|
|
extern SVECTOR night_colours[4];
|
|
|
|
|
2020-04-11 21:21:06 +02:00
|
|
|
extern MATRIX aspect;
|
2020-10-05 22:02:41 +02:00
|
|
|
extern MATRIX identity;
|
2020-04-22 15:50:56 +02:00
|
|
|
extern MATRIX inv_camera_matrix;
|
|
|
|
extern MATRIX face_camera;
|
2020-04-28 20:00:25 +02:00
|
|
|
|
|
|
|
extern MATRIX2 matrixtable[64];
|
2020-04-22 15:50:56 +02:00
|
|
|
extern MATRIX2 CompoundMatrix[64];
|
2020-04-11 21:21:06 +02:00
|
|
|
|
2020-10-28 21:40:44 +01:00
|
|
|
#ifdef PSX
|
|
|
|
|
|
|
|
#define MAX_DRAWN_BUILDINGS 192
|
|
|
|
#define MAX_DRAWN_TILES 320
|
|
|
|
#define MAX_DRAWN_ANIMATING 20
|
|
|
|
#define MAX_DRAWN_SPRITES 75
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define MAX_DRAWN_BUILDINGS 384
|
|
|
|
#define MAX_DRAWN_TILES 750
|
|
|
|
#define MAX_DRAWN_ANIMATING 48
|
|
|
|
#define MAX_DRAWN_SPRITES 128
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2020-11-19 18:01:55 +01:00
|
|
|
enum PlotFlags
|
|
|
|
{
|
|
|
|
PLOT_TRANSPARENT = (1 << 0),
|
|
|
|
PLOT_INV_CULL = (1 << 1),
|
|
|
|
PLOT_NO_CULL = (1 << 2),
|
|
|
|
PLOT_NO_SHADE = (1 << 3),
|
|
|
|
PLOT_CUSTOM_PALETTE = (1 << 4),
|
|
|
|
};
|
|
|
|
|
2020-10-28 21:40:44 +01:00
|
|
|
extern void* model_tile_ptrs[MAX_DRAWN_TILES];
|
2020-04-28 20:00:25 +02:00
|
|
|
|
2020-04-09 19:10:34 +02:00
|
|
|
extern int units_across_halved;
|
|
|
|
extern int units_down_halved;
|
2020-04-13 16:54:39 +02:00
|
|
|
extern int pvs_square;
|
|
|
|
extern int pvs_square_sq;
|
2020-04-10 23:54:19 +02:00
|
|
|
extern int PolySizes[56];
|
2020-04-13 15:45:34 +02:00
|
|
|
|
2020-04-15 16:15:54 +02:00
|
|
|
extern int combointensity;
|
|
|
|
|
2020-04-20 16:14:50 +02:00
|
|
|
extern int gForceLowDetailCars;
|
|
|
|
extern int num_cars_drawn;
|
|
|
|
|
2020-06-22 21:32:35 +02:00
|
|
|
extern char CurrentPVS[444];
|
|
|
|
|
2020-03-27 21:47:29 +01:00
|
|
|
extern void DrawMapPSX(int *comp_val); // 0x0003F6B0
|
|
|
|
|
2020-12-08 17:45:14 +01:00
|
|
|
extern void SetupPlaneColours(uint ambient); // 0x00040218
|
2020-03-27 21:47:29 +01:00
|
|
|
extern void SetupDrawMapPSX(); // 0x00040408
|
|
|
|
|
|
|
|
extern void InitFrustrumMatrix(); // 0x00040534
|
|
|
|
extern void SetFrustrumMatrix(); // 0x000417A4
|
|
|
|
extern void Set_Inv_CameraMatrix(); // 0x000417DC
|
|
|
|
|
|
|
|
extern void CalcObjectRotationMatrices(); // 0x00041814
|
|
|
|
|
2020-10-31 01:11:58 +01:00
|
|
|
extern void PlotMDL_less_than_128(MODEL *model); // 0x000418BC
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void DrawAllTheCars(int view); // 0x000407D8
|
|
|
|
|
2020-10-17 20:48:38 +02:00
|
|
|
extern void RenderModel(MODEL *model, MATRIX *matrix, VECTOR *pos, int zBias, int flags, int subdiv, int nrot); // 0x0004143C
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|