Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 338:8c68d9097846
prev337:cdd757aa8e8c
next348:15b2de02558d
author nkeynes
date Mon Jan 29 11:24:44 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Get render size from the tile segment array
Set near clip to just 0 rather than scanning the scene
Fixup modulate RGB to force fragment alpha to 1.0
Add some debugging fprintfs
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Jan 28 11:36:00 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Jan 29 11:24:44 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.32 2007-01-28 11:36:00 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.33 2007-01-29 11:24:44 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -353,7 +353,7 @@
1.11 #define POLY2_TEX_CLAMP_V(poly2) ((poly2)&0x00008000)
1.12 #define POLY2_TEX_WIDTH(poly2) ( 1<< ((((poly2) >> 3) & 0x07 ) + 3) )
1.13 #define POLY2_TEX_HEIGHT(poly2) ( 1<< (((poly2) & 0x07 ) + 3) )
1.14 -#define POLY2_TEX_BLEND(poly2) ( pvr2_poly_texblend[((poly2) >> 6)&0x03] )
1.15 +#define POLY2_TEX_BLEND(poly2) (((poly2) >> 6)&0x03)
1.16 extern int pvr2_poly_depthmode[8];
1.17 extern int pvr2_poly_srcblend[8];
1.18 extern int pvr2_poly_dstblend[8];
.