Search
lxdream.org :: lxdream/src/display.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.h
changeset 1076:18c164e8aec4
prev1072:d82e04e6d497
next1134:f502f3d32f90
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/display.h Tue Jul 21 20:33:21 2009 +1000
1.2 +++ b/src/display.h Mon Aug 03 08:41:11 2009 +1000
1.3 @@ -194,6 +194,11 @@
1.4 void (*display_blank)( uint32_t rgb );
1.5
1.6 /**
1.7 + * Swap front/back window buffers
1.8 + */
1.9 + void (*swap_buffers)();
1.10 +
1.11 + /**
1.12 * Copy the image data from the GL buffer to the target memory buffer,
1.13 * using the format etc from the buffer. This may force a glFinish()
1.14 * but does not invalidate the buffer.
.