--- a/src/pvr2/scene.h Mon May 12 10:00:13 2008 +0000 +++ b/src/pvr2/scene.h Sat Jun 14 11:54:15 2008 +0000 @@ -29,9 +29,9 @@ struct vertex_struct { float u,v; - uint32_t rgba; float x,y,z; - uint32_t offset_rgba; + float rgba[4]; + float offset_rgba[4]; }; struct polygon_struct { @@ -69,7 +69,7 @@ /** * Maximum polygons - smallest is 1 polygon in 48 bytes, giving - * 87381 + * 87381, plus 1 for the background * */ #define MAX_POLYGONS 87382 @@ -100,6 +100,9 @@ /** Pointer to the polygon data for the scene (main ram). * This will always have room for at least MAX_POLYGONS */ struct polygon_struct *poly_array; + /** Pointer to the background polygon. This is always a quad, and + * normally the last member of poly_array */ + struct polygon_struct *bkgnd_poly; /** Total number of polygons in the scene */ uint32_t poly_count;