Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 1076:18c164e8aec4
prev1067:d3c00ffccfcd
next1135:68daed8f38af
author nkeynes
date Mon Aug 03 08:41:11 2009 +1000 (12 years ago)
permissions -rw-r--r--
last change Rearrange frame output slightly.
pvr2_display_frame renamed to pvr2_next_frame and changed to update the
frame data without displaying it.
pvr2_redraw_display renamed to pvr2_draw_frame, called internally after
pvr2_next_frame
Add swap_buffers() method to the display driver
Remove explicit glDrawBuffer() calls where they're referencing the window.
pvr2_draw_frame now gets to decide where to draw.
Add force_vsync flag to force double-buffering (not configurable yet)
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Jul 05 13:54:48 2009 +1000
1.2 +++ b/src/pvr2/pvr2.h Mon Aug 03 08:41:11 2009 +1000
1.3 @@ -71,10 +71,17 @@
1.4 #define RENDER_CHEAPMOD 2 /* Render cheap-modified polygons */
1.5 #define RENDER_FULLMOD 3 /* Render the fully-modified version of the polygons */
1.6
1.7 +/**
1.8 + * Advance to the next frame
1.9 + */
1.10 void pvr2_next_frame( void );
1.11 +
1.12 +/**
1.13 + * Draw the current frame on the output window.
1.14 + */
1.15 +void pvr2_draw_frame();
1.16 void pvr2_set_base_address( uint32_t );
1.17 int pvr2_get_frame_count( void );
1.18 -void pvr2_redraw_display();
1.19 gboolean pvr2_save_next_scene( const gchar *filename );
1.20
1.21 #define PVR2_CMD_END_OF_LIST 0x00
.