Search
lxdream.org :: lxdream/src/display.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.c
changeset 327:00d55a462af3
prev271:2ec052d24881
next329:4b453d68e9ae
author nkeynes
date Thu Jan 25 11:46:35 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup framebuffer formats by adding a central source for the information
file annotate diff log raw
1.1 --- a/src/display.c Thu Jan 11 06:51:52 2007 +0000
1.2 +++ b/src/display.c Thu Jan 25 11:46:35 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: display.c,v 1.3 2007-01-11 06:51:52 nkeynes Exp $
1.6 + * $Id: display.c,v 1.4 2007-01-25 11:46:35 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 @@ -31,6 +31,18 @@
1.11 } *keymap_entry_t;
1.12
1.13 /**
1.14 + * Colour format information
1.15 + */
1.16 +struct colour_format colour_formats[] = {
1.17 + { GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_RGBA, GL_RGB5_A1, 2 },
1.18 + { GL_UNSIGNED_SHORT_5_6_5, GL_RGB, GL_RGB5, 2 },
1.19 + { GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_BGRA, GL_RGBA4, 2 },
1.20 + { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 }, /* YUV decoded to ARGB8888 */
1.21 + { GL_UNSIGNED_BYTE, GL_BGR, GL_RGB, 3 },
1.22 + { GL_UNSIGNED_INT_8_8_8_8_REV, GL_BGRA, GL_RGBA8, 4 }
1.23 +};
1.24 +
1.25 +/**
1.26 * FIXME: make this more memory efficient
1.27 */
1.28 struct keymap_entry *keymap[65536];
.