Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 645:a7392098299c
prev635:76c63aac3590
next646:f9812647b818
author nkeynes
date Thu Mar 06 08:22:00 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change More refactor work in progress - nearly done now
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Thu Feb 14 13:54:11 2008 +0000
1.2 +++ b/src/pvr2/pvr2.h Thu Mar 06 08:22:00 2008 +0000
1.3 @@ -343,8 +343,7 @@
1.4 * If the texture has already been bound, return the ID to which it was
1.5 * bound. Otherwise obtain an unused texture ID and set it up appropriately.
1.6 */
1.7 -GLuint texcache_get_texture( uint32_t texture_addr, int width, int height,
1.8 - int mode );
1.9 +GLuint texcache_get_texture( uint32_t texture_word, int width, int height );
1.10
1.11 void pvr2_check_palette_changed(void);
1.12
1.13 @@ -355,6 +354,7 @@
1.14 #define POLY1_DEPTH_MODE(poly1) ( pvr2_poly_depthmode[(poly1)>>29] )
1.15 #define POLY1_DEPTH_ENABLE(poly1) (((poly1)&0x04000000) == 0 )
1.16 #define POLY1_CULL_MODE(poly1) (((poly1)>>27)&0x03)
1.17 +#define POLY1_CULL_ENABLE(poly1) (((poly1)>>28)&0x01)
1.18 #define POLY1_TEXTURED(poly1) (((poly1)&0x02000000))
1.19 #define POLY1_SPECULAR(poly1) (((poly1)&0x01000000))
1.20 #define POLY1_GOURAUD_SHADED(poly1) ((poly1)&0x00800000)
1.21 @@ -381,8 +381,6 @@
1.22 extern int pvr2_poly_texblend[4];
1.23 extern int pvr2_render_colour_format[8];
1.24
1.25 -float halftofloat(uint16_t half);
1.26 -
1.27 #define CULL_NONE 0
1.28 #define CULL_SMALL 1
1.29 #define CULL_CCW 2
.