2021-04-10 14:22:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2021-04-18 23:41:28 +02:00
|
|
|
#include <stdio.h>
|
2021-04-10 14:22:48 +02:00
|
|
|
#include <libgte.h>
|
|
|
|
#include <libetc.h>
|
2021-04-18 23:41:28 +02:00
|
|
|
#include <libgpu.h>
|
|
|
|
#include <libapi.h>
|
2021-04-15 18:18:39 +02:00
|
|
|
#include <libcd.h>
|
2021-04-10 14:22:48 +02:00
|
|
|
|
2021-04-18 23:41:28 +02:00
|
|
|
|
2021-04-10 14:22:48 +02:00
|
|
|
#include "defines.h"
|
2021-04-16 20:22:03 +02:00
|
|
|
#include "custom_types.h"
|
2021-04-10 14:22:48 +02:00
|
|
|
|
|
|
|
// PSX setup
|
|
|
|
|
|
|
|
void init(DISPENV disp[2], DRAWENV draw[2], short db, MATRIX * cmat, CVECTOR * BG, VECTOR * BK );
|
|
|
|
|
2021-04-16 20:22:03 +02:00
|
|
|
void ScrRst(void);
|
|
|
|
|
2021-04-10 14:22:48 +02:00
|
|
|
void display(DISPENV * disp, DRAWENV * draw, u_long * otdisc, char * primbuff, char ** nextprim, char * db);
|
|
|
|
|
|
|
|
// Utils
|
|
|
|
|
2021-04-16 20:22:03 +02:00
|
|
|
void LvlPtrSet( LEVEL * curLevel, LEVEL * level );
|
|
|
|
|
2021-04-26 12:08:34 +02:00
|
|
|
int LoadLevelCD(const char*const LevelName, u_long * LoadAddress);
|
2021-04-15 18:18:39 +02:00
|
|
|
|
2021-06-22 17:24:52 +02:00
|
|
|
void SwitchLevel( LEVEL * curLevel, LEVEL * loadLevel);
|
2021-04-20 16:45:11 +02:00
|
|
|
|
2021-04-10 14:22:48 +02:00
|
|
|
void LoadTexture(u_long * tim, TIM_IMAGE * tparam);
|