Quake BSP renderer for PS1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
561 B

#ifndef __COMMON_H__
#define __COMMON_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <psxapi.h>
#include <psxetc.h>
#include <psxgte.h>
#include <psxgpu.h>
typedef struct _STVECTOR {
int16_t vx, vy, vz;
int16_t u, v, pad;
} STVECTOR;
#define INLINE __attribute__((always_inline)) inline
#include "memory.h"
#include "qmath.h"
extern VECTOR cam_pos;
extern SVECTOR cam_rot;
extern SVECTOR cam_dir;
extern u_short cam_leaf;
extern u_short quake_clut;
extern u_short water_clut;
#endif // __COMMON_H__