Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 133:249aeda31f02
prev127:4ba79389bb6d
next144:7f0714e89aaa
author nkeynes
date Thu Mar 30 11:30:59 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Unfubar the pvr event generation
Move state into pvr2_state structure for ease of save/load
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Thu Mar 23 13:19:15 2006 +0000
1.2 +++ b/src/pvr2/pvr2.h Thu Mar 30 11:30:59 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.11 2006-03-23 13:19:15 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.12 2006-03-30 11:30:59 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -55,6 +55,7 @@
1.11
1.12 void pvr2_next_frame( void );
1.13 void pvr2_set_base_address( uint32_t );
1.14 +int pvr2_get_frame_count( void );
1.15
1.16 #define PVR2_CMD_END_OF_LIST 0x00
1.17 #define PVR2_CMD_USER_CLIP 0x20
1.18 @@ -71,6 +72,14 @@
1.19 #define PVR2_POLY_SHADED 0x00000002
1.20 #define PVR2_POLY_UV_16BIT 0x00000001
1.21
1.22 +#define PVR2_POLY_MODE_CLAMP_RGB 0x00200000
1.23 +#define PVR2_POLY_MODE_ALPHA 0x00100000
1.24 +#define PVR2_POLY_MODE_TEXALPHA 0x00080000
1.25 +#define PVR2_POLY_MODE_FLIP_S 0x00040000
1.26 +#define PVR2_POLY_MODE_FLIP_T 0x00020000
1.27 +#define PVR2_POLY_MODE_CLAMP_S 0x00010000
1.28 +#define PVR2_POLY_MODE_CLAMP_T 0x00008000
1.29 +
1.30 #define PVR2_TEX_FORMAT_ARGB1555 0x00000000
1.31 #define PVR2_TEX_FORMAT_RGB565 0x08000000
1.32 #define PVR2_TEX_FORMAT_ARGB4444 0x10000000
.