KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
pvr_zclip.h
Go to the documentation of this file.
1/*
2 * KallistiOS ##version##
3 *
4 * examples/dreamcast/pvr/modifier_volume_zclip/pvr_zclip.h
5 * Copyright (C) 2024 Twada
6 *
7 * This file contains the public API for commonly-used Z-clipping routines for
8 * modifier volumes.
9 */
10
11#include <kos.h>
12
13/*
14 Coordinates are received in (x, y, 1/z) and clipped in the range (1.0f >=z&>z0.0f).
15 Since it uses a pair of single-precision transfer instructions, the data must be aligned in 8-byte increments.
16 return : Bytes sent.
17 */
18extern int pvr_vertex_commit_zclip(pvr_vertex_t *vert, int size);
20extern int pvr_modifier_commit_zclip(pvr_mod_hdr_t *eol_header, pvr_modifier_vol_t *vol, int size);
Include everything KOS has to offer!
int pvr_vertex_commit_zclip_intensity(pvr_vertex_t *vert, int size)
Definition pvr_zclip.c:378
int pvr_vertex_commit_zclip(pvr_vertex_t *vert, int size)
Definition pvr_zclip.c:280
int pvr_modifier_commit_zclip(pvr_mod_hdr_t *eol_header, pvr_modifier_vol_t *vol, int size)
Definition pvr_zclip.c:609
PVR vertex type: Modifier volume.
Definition pvr.h:786
PVR polygon header.
Definition pvr_header.h:309
Generic PVR vertex type.
Definition pvr.h:656
static pvr_vertex_t vert[4]
Definition yuv420.c:56