Search
lxdream.org :: lxdream/src/display.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.c
changeset 329:4b453d68e9ae
prev327:00d55a462af3
next352:f0df7a6d4703
author nkeynes
date Mon Jan 29 11:24:44 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Get render size from the tile segment array
Set near clip to just 0 rather than scanning the scene
Fixup modulate RGB to force fragment alpha to 1.0
Add some debugging fprintfs
file annotate diff log raw
1.1 --- a/src/display.c Thu Jan 25 11:46:35 2007 +0000
1.2 +++ b/src/display.c Mon Jan 29 11:24:44 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: display.c,v 1.4 2007-01-25 11:46:35 nkeynes Exp $
1.6 + * $Id: display.c,v 1.5 2007-01-25 13:03:23 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 @@ -34,7 +34,7 @@
1.11 * Colour format information
1.12 */
1.13 struct colour_format colour_formats[] = {
1.14 - { GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_RGBA, GL_RGB5_A1, 2 },
1.15 + { GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_BGRA, GL_RGB5_A1, 2 },
1.16 { GL_UNSIGNED_SHORT_5_6_5, GL_RGB, GL_RGB5, 2 },
1.17 { GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_BGRA, GL_RGBA4, 2 },
1.18 { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 }, /* YUV decoded to ARGB8888 */
.