diff options
Diffstat (limited to 'examples/graphics/hdtv/clip.h')
| -rw-r--r-- | examples/graphics/hdtv/clip.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/graphics/hdtv/clip.h b/examples/graphics/hdtv/clip.h new file mode 100644 index 0000000..3b428bb --- /dev/null +++ b/examples/graphics/hdtv/clip.h @@ -0,0 +1,27 @@ +#ifndef _CLIP_H +#define _CLIP_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
\ No newline at end of file |
