Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 864:a90f3d5e57e1
prev861:4cd3a1e0f569
next865:e10c081f4b81
author nkeynes
date Mon Sep 29 05:55:33 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Compute accurate shadow volume stencils
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Sep 28 00:30:45 2008 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Sep 29 05:55:33 2008 +0000
1.3 @@ -87,6 +87,10 @@
1.4 #define PVR2_CMD_VERTEX 0xE0
1.5 #define PVR2_CMD_VERTEX_LAST 0xF0
1.6
1.7 +#define PVR2_VOLUME_NORMAL 0x00000000
1.8 +#define PVR2_VOLUME_REGION1 0x20000000
1.9 +#define PVR2_VOLUME_REGION0 0x40000000
1.10 +
1.11 #define PVR2_POLY_TEXTURED 0x00000008
1.12 #define PVR2_POLY_SPECULAR 0x00000004
1.13 #define PVR2_POLY_SHADED 0x00000002
1.14 @@ -352,6 +356,7 @@
1.15 void pvr2_queue_gun_event( int xpos, int ypos );
1.16
1.17 /************************* Rendering support macros **************************/
1.18 +#define POLY1_VOLUME_MODE(poly1) ((poly1)&0xE0000000)
1.19 #define POLY1_DEPTH_MODE(poly1) ( pvr2_poly_depthmode[(poly1)>>29] )
1.20 #define POLY1_DEPTH_WRITE(poly1) (((poly1)&0x04000000) == 0 )
1.21 #define POLY1_CULL_MODE(poly1) (((poly1)>>27)&0x03)
.