2021-06-23 19:25:12 +02:00
|
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <libgte.h>
|
|
|
|
#include <libetc.h>
|
|
|
|
#include <libgpu.h>
|
|
|
|
#include <libapi.h>
|
|
|
|
#include <libcd.h>
|
2021-07-05 17:47:30 +02:00
|
|
|
#include <inline_n.h>
|
|
|
|
#include <gtemac.h>
|
2021-06-23 19:25:12 +02:00
|
|
|
#include "../include/defines.h"
|
|
|
|
#include "../custom_types.h"
|
|
|
|
|
|
|
|
// PSX setup
|
2021-06-24 20:39:31 +02:00
|
|
|
void setLightEnv(DRAWENV draw[2], CVECTOR * BGc, VECTOR * BKc, MATRIX * cmat);
|
2021-07-03 11:57:06 +02:00
|
|
|
void init(DISPENV disp[2], DRAWENV draw[2], short db, MATRIX * cmat, CVECTOR * BG, VECTOR * BK, VECTOR * FC );
|
2021-06-23 19:25:12 +02:00
|
|
|
void ScrRst(void);
|
|
|
|
void display(DISPENV * disp, DRAWENV * draw, u_long * otdisc, char * primbuff, char ** nextprim, char * db);
|
|
|
|
|
|
|
|
// Utils
|
|
|
|
void LvlPtrSet( LEVEL * curLevel, LEVEL * level );
|
|
|
|
int LoadLevelCD(const char*const LevelName, u_long * LoadAddress);
|
|
|
|
void SwitchLevel( LEVEL * curLevel, LEVEL * loadLevel);
|
|
|
|
void LoadTexture(u_long * tim, TIM_IMAGE * tparam);
|