Search
lxdream.org :: lxdream/src/pvr2/scene.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/scene.h
changeset 1159:580436b01b6c
prev1153:00e507e4025c
author nkeynes
date Tue Mar 20 08:29:38 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change More android WIP
- Implement onPause/onResume (although resume is not actually working yet)
- Implement BGRA => RGBA texture conversion (BGRA doesn't seem to work on the TFP)

Boot swirl is now displayed, albeit depth buffering seems to be broken.
file annotate diff log raw
1.1 --- a/src/pvr2/scene.h Thu Dec 23 18:14:29 2010 +1000
1.2 +++ b/src/pvr2/scene.h Tue Mar 20 08:29:38 2012 +1000
1.3 @@ -36,7 +36,7 @@
1.4
1.5 struct vertex_struct {
1.6 float u,v,r,tex_mode; /* tex-coord quad */
1.7 - float x,y,z;
1.8 + float x,y,z,w;
1.9 float rgba[4];
1.10 float offset_rgba[4];
1.11 };
1.12 @@ -54,6 +54,7 @@
1.13
1.14 void pvr2_scene_init(void);
1.15 void pvr2_scene_read(void);
1.16 +void pvr2_scene_finished(void);
1.17 void pvr2_scene_shutdown();
1.18
1.19 uint32_t pvr2_scene_buffer_width();
1.20 @@ -72,6 +73,7 @@
1.21 */
1.22 #define MAX_VERTEXES 262144
1.23 #define MAX_VERTEX_BUFFER_SIZE (MAX_VERTEXES*sizeof(struct vertex_struct))
1.24 +#define MIN_VERTEX_BUFFER_SIZE (2024*1024)
1.25
1.26 /**
1.27 * Maximum polygons - smallest is 1 polygon in 48 bytes, giving
.