2024-07-12 20:48:23 -03:00
|
|
|
#ifndef UTIL_H
|
|
|
|
#define UTIL_H
|
|
|
|
|
2024-07-15 03:37:57 -03:00
|
|
|
#include <psxgpu.h>
|
2024-07-12 20:48:23 -03:00
|
|
|
#include <psxgte.h>
|
|
|
|
|
|
|
|
int RotAverageNclip4(SVECTOR *a, SVECTOR *b, SVECTOR *c, SVECTOR *d,
|
|
|
|
long *xy0, long *xy1, long *xy2, long *xy3,
|
|
|
|
int *otz);
|
|
|
|
|
2024-07-15 17:53:40 -03:00
|
|
|
uint8_t *file_read(const char *filename, uint32_t *length);
|
|
|
|
void load_texture(uint8_t *data, TIM_IMAGE *tim);
|
2024-07-15 03:37:57 -03:00
|
|
|
|
2024-07-15 17:53:40 -03:00
|
|
|
uint8_t get_byte(uint8_t *bytes, uint32_t *b);
|
|
|
|
uint16_t get_short_be(uint8_t *bytes, uint32_t *b);
|
|
|
|
uint16_t get_short_le(uint8_t *bytes, uint32_t *b);
|
2024-07-15 03:37:57 -03:00
|
|
|
|
2024-07-12 20:48:23 -03:00
|
|
|
#endif
|