Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 308:10a5b5475fb0
prev295:6637664291a8
next310:00cd8897ad5e
author nkeynes
date Sun Jan 21 11:28:43 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Enable blend by default - remove toggle on tex-alpha bit as its just plain
wrong
Implement UV clamping
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Tue Jan 16 10:34:46 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Sun Jan 21 11:28:43 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.22 2007-01-16 10:34:46 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.23 2007-01-21 11:28:43 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -259,6 +259,8 @@
1.11 #define POLY2_COLOUR_CLAMP_ENABLE(poly2) ((poly2)&0x00200000)
1.12 #define POLY2_ALPHA_ENABLE(poly2) ((poly2)&0x001000000)
1.13 #define POLY2_TEX_ALPHA_ENABLE(poly2) (((poly2)&0x00080000) == 0 )
1.14 +#define POLY2_TEX_CLAMP_U(poly2) ((poly2)&0x00010000)
1.15 +#define POLY2_TEX_CLAMP_V(poly2) ((poly2)&0x00008000)
1.16 #define POLY2_TEX_WIDTH(poly2) ( 1<< ((((poly2) >> 3) & 0x07 ) + 3) )
1.17 #define POLY2_TEX_HEIGHT(poly2) ( 1<< (((poly2) & 0x07 ) + 3) )
1.18 #define POLY2_TEX_BLEND(poly2) ( pvr2_poly_texblend[((poly2) >> 6)&0x03] )
.