1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef _CLIP_H
#define _CLIP_H
#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>
/* tri_clip
*
* Returns non-zero if a triangle (v0, v1, v2) is outside 'clip'.
*
* clip - Clipping area
* v0,v1,v2 - Triangle coordinates
*
*/
int tri_clip(RECT *clip, DVECTOR *v0, DVECTOR *v1, DVECTOR *v2);
/* quad_clip
*
* Returns non-zero if a quad (v0, v1, v2, v3) is outside 'clip'.
*
* clip - Clipping area
* v0,v1,v2,v3 - Quad coordinates
*
*/
int quad_clip(RECT *clip, DVECTOR *v0, DVECTOR *v1, DVECTOR *v2, DVECTOR *v3);
#endif // _CLIP_H
|