Search
lxdream.org :: lxdream :: r784:0417e1c488b3
lxdream 0.9.1
released Jun 29
Download Now
changeset784:0417e1c488b3
parent783:ef81aa93524f
child785:00235838aaec
authornkeynes
dateTue Jul 29 08:43:16 2008 +0000 (11 years ago)
Fixup scene dump wrt colour parameters
src/pvr2/scene.c
1.1 --- a/src/pvr2/scene.c Tue Jul 29 06:52:55 2008 +0000
1.2 +++ b/src/pvr2/scene.c Tue Jul 29 08:43:16 2008 +0000
1.3 @@ -708,15 +708,17 @@
1.4
1.5 for( j=0; j<poly->vertex_count; j++ ) {
1.6 struct vertex_struct *v = &pvr2_scene.vertex_array[poly->vertex_index+j];
1.7 - fprintf( f, " %.5f %.5f %.5f, (%.5f,%.5f) %08X %08X\n", v->x, v->y, v->z, v->u, v->v,
1.8 - v->rgba, v->offset_rgba );
1.9 + fprintf( f, " %.5f %.5f %.5f, (%.5f,%.5f) %.5f,%.5f,%.5f,%.5f %.5f %.5f %.5f %.5f\n", v->x, v->y, v->z, v->u, v->v,
1.10 + v->rgba[0], v->rgba[1], v->rgba[2], v->rgba[3],
1.11 + v->offset_rgba[0], v->offset_rgba[1], v->offset_rgba[2], v->offset_rgba[3] );
1.12 }
1.13 if( poly->mod_vertex_index != -1 ) {
1.14 fprintf( f, " ---\n" );
1.15 for( j=0; j<poly->vertex_count; j++ ) {
1.16 struct vertex_struct *v = &pvr2_scene.vertex_array[poly->mod_vertex_index+j];
1.17 - fprintf( f, " %.5f %.5f %.5f, (%.5f,%.5f) %08X %08X\n", v->x, v->y, v->z, v->u, v->v,
1.18 - v->rgba, v->offset_rgba );
1.19 + fprintf( f, " %.5f %.5f %.5f, (%.5f,%.5f) %.5f,%.5f,%.5f,%.5f %.5f %.5f %.5f %.5f\n", v->x, v->y, v->z, v->u, v->v,
1.20 + v->rgba[0], v->rgba[1], v->rgba[2], v->rgba[3],
1.21 + v->offset_rgba[0], v->offset_rgba[1], v->offset_rgba[2], v->offset_rgba[3] );
1.22 }
1.23 }
1.24 }
.