Search
lxdream.org :: lxdream/src/pvr2/scene.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/scene.h
changeset 687:6bdc2b7032ea
prev669:ab344e42bca9
next736:a02d1475ccfd
author nkeynes
date Sat Jun 14 11:54:15 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Change colour params to float
Convert background processing over to scene structure (fixes some depth issues as well)
Add color unclamp when supported
file annotate diff log raw
1.1 --- a/src/pvr2/scene.h Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/pvr2/scene.h Sat Jun 14 11:54:15 2008 +0000
1.3 @@ -29,9 +29,9 @@
1.4
1.5 struct vertex_struct {
1.6 float u,v;
1.7 - uint32_t rgba;
1.8 float x,y,z;
1.9 - uint32_t offset_rgba;
1.10 + float rgba[4];
1.11 + float offset_rgba[4];
1.12 };
1.13
1.14 struct polygon_struct {
1.15 @@ -69,7 +69,7 @@
1.16
1.17 /**
1.18 * Maximum polygons - smallest is 1 polygon in 48 bytes, giving
1.19 - * 87381
1.20 + * 87381, plus 1 for the background
1.21 *
1.22 */
1.23 #define MAX_POLYGONS 87382
1.24 @@ -100,6 +100,9 @@
1.25 /** Pointer to the polygon data for the scene (main ram).
1.26 * This will always have room for at least MAX_POLYGONS */
1.27 struct polygon_struct *poly_array;
1.28 + /** Pointer to the background polygon. This is always a quad, and
1.29 + * normally the last member of poly_array */
1.30 + struct polygon_struct *bkgnd_poly;
1.31 /** Total number of polygons in the scene */
1.32 uint32_t poly_count;
1.33
.