3dcam-headers/include/psx.h

31 lines
1.0 KiB
C
Raw Permalink Normal View History

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-08-10 18:44:19 +02:00
#include <libspu.h>
#include <string.h>
#include <inline_n.h>
#include <gtemac.h>
2021-11-28 19:59:05 +01:00
#include <defines.h>
2021-10-13 10:51:58 +02:00
#include <stdint.h>
2021-11-28 19:59:05 +01:00
#include <custom_types.h>
#include "../thirdparty/nugget/common/syscalls/syscalls.h"
#define printf ramsyscall_printf
2021-06-23 19:25:12 +02:00
// PSX setup
void setDCLightEnv(MATRIX * curLevelCMat, MATRIX * curLevelLgtMat, SVECTOR * curLevelLgtAng);
void setLightEnv(DRAWENV draw[2], CVECTOR * BGc, VECTOR * BKc);
void init(DISPENV disp[2], DRAWENV draw[2], short db, 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);