Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 322:354407942957
prev319:5392aed6a982
next325:5717ae5d4746
author nkeynes
date Thu Jan 25 10:12:54 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Fix 16-bit palette offsets
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Wed Jan 24 08:11:14 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Thu Jan 25 10:12:54 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.26 2007-01-24 08:11:14 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.27 2007-01-25 08:18:03 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -265,7 +265,7 @@
1.11 void pvr2_render_tilebuffer( int width, int height, int clipx1, int clipy1,
1.12 int clipx2, int clipy2 );
1.13
1.14 -
1.15 +float pvr2_render_find_maximum_z();
1.16 /**
1.17 * Structure to hold a complete unpacked vertex (excluding modifier
1.18 * volume parameters - generate separate vertexes in that case).
1.19 @@ -333,13 +333,13 @@
1.20
1.21 #define POLY2_SRC_BLEND(poly2) ( pvr2_poly_srcblend[(poly2) >> 29] )
1.22 #define POLY2_DEST_BLEND(poly2) ( pvr2_poly_dstblend[((poly2)>>26)&0x07] )
1.23 -#define POLY2_SRC_BLEND_TARGET(poly2) ((poly2)&0x02000000)
1.24 -#define POLY2_DEST_BLEND_TARGET(poly2) ((poly2)&0x01000000)
1.25 +#define POLY2_SRC_BLEND_TARGET(poly2) ((poly2)&0x02000000)
1.26 +#define POLY2_DEST_BLEND_TARGET(poly2) ((poly2)&0x01000000)
1.27 #define POLY2_COLOUR_CLAMP_ENABLE(poly2) ((poly2)&0x00200000)
1.28 -#define POLY2_ALPHA_ENABLE(poly2) ((poly2)&0x001000000)
1.29 -#define POLY2_TEX_ALPHA_ENABLE(poly2) (((poly2)&0x00080000) == 0 )
1.30 -#define POLY2_TEX_CLAMP_U(poly2) ((poly2)&0x00010000)
1.31 -#define POLY2_TEX_CLAMP_V(poly2) ((poly2)&0x00008000)
1.32 +#define POLY2_ALPHA_ENABLE(poly2) ((poly2)&0x00100000)
1.33 +#define POLY2_TEX_ALPHA_ENABLE(poly2) (((poly2)&0x00080000) == 0 )
1.34 +#define POLY2_TEX_CLAMP_U(poly2) ((poly2)&0x00010000)
1.35 +#define POLY2_TEX_CLAMP_V(poly2) ((poly2)&0x00008000)
1.36 #define POLY2_TEX_WIDTH(poly2) ( 1<< ((((poly2) >> 3) & 0x07 ) + 3) )
1.37 #define POLY2_TEX_HEIGHT(poly2) ( 1<< (((poly2) & 0x07 ) + 3) )
1.38 #define POLY2_TEX_BLEND(poly2) ( pvr2_poly_texblend[((poly2) >> 6)&0x03] )
.