Search
lxdream.org :: lxdream/src/display.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.c
changeset 352:f0df7a6d4703
prev329:4b453d68e9ae
next356:b281cad966b7
author nkeynes
date Sun Feb 11 10:09:32 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Bug 27: Implement opengl framebuffer objects
Rewrite much of the final video output stage. Now uses generic "render
buffers", implemented on GL using framebuffer objects + textures.
file annotate diff log raw
1.1 --- a/src/display.c Thu Jan 25 13:03:23 2007 +0000
1.2 +++ b/src/display.c Sun Feb 11 10:09:32 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: display.c,v 1.5 2007-01-25 13:03:23 nkeynes Exp $
1.6 + * $Id: display.c,v 1.6 2007-02-11 10:09:32 nkeynes Exp $
1.7 *
1.8 * Generic support for keyboard and other input sources. The active display
1.9 * driver is expected to deliver events here, where they're translated and
1.10 @@ -39,7 +39,8 @@
1.11 { GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_BGRA, GL_RGBA4, 2 },
1.12 { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 }, /* YUV decoded to ARGB8888 */
1.13 { GL_UNSIGNED_BYTE, GL_BGR, GL_RGB, 3 },
1.14 - { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 }
1.15 + { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 },
1.16 +
1.17 };
1.18
1.19 /**
1.20 @@ -151,7 +152,5 @@
1.21 display_driver = driver;
1.22 if( driver->init_driver != NULL )
1.23 driver->init_driver();
1.24 - driver->set_display_format( 640, 480, COLFMT_ARGB8888 );
1.25 - driver->set_render_format( 640, 480, COLFMT_ARGB8888, FALSE );
1.26 texcache_gl_init();
1.27 }
.