/* KallistiGL for KOS ##version## glmodifier.c (c)2002 Paul Boese NOTE: This module is experimental, incomplete, and non-working */ #include #include #include "glinternal.h" #include "glmacros.h" #include #include #include #include #include volatile pvr_modifier_vol_t *volume; static pvr_modifier_vol_t vol_vbuf, vol_xbuf; pvr_dr_state_t dr_state; static GLint mod_type = -1; /* local buffer for textured, packed-color, affected by modifier vertex */ pvr_vertex_tpcm_t vert_xbuf = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }; /* Negative 1/w values annoy the pvr, so check for them */ static inline int check_w(pvr_vertex_t *vert, int n) { int i; for(i=0; i