Search
lxdream.org :: lxdream/src/display.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.h
changeset 700:4650d0c7f6f9
prev681:1755a126b109
next736:a02d1475ccfd
author nkeynes
date Sun Jun 22 06:49:00 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Big cleanup of the command-line options
Add an actual manpage (*gasp*)
file annotate diff log raw
1.1 --- a/src/display.h Sun Jun 01 00:47:45 2008 +0000
1.2 +++ b/src/display.h Sun Jun 22 06:49:00 2008 +0000
1.3 @@ -23,7 +23,9 @@
1.4 #define GL_GLEXT_PROTOTYPES 1
1.5
1.6 #include <stdint.h>
1.7 +#include <stdio.h>
1.8 #include <glib.h>
1.9 +#include <glib/gi18n.h>
1.10 #include "lxdream.h"
1.11 #ifdef APPLE_BUILD
1.12 #include <OpenGL/gl.h>
1.13 @@ -98,6 +100,11 @@
1.14 typedef struct display_driver {
1.15 char *name;
1.16 /**
1.17 + * Short (<60 chars) description of the driver. This should be marked for
1.18 + * localization.
1.19 + */
1.20 + char *description;
1.21 + /**
1.22 * Initialize the driver. This is called only once at startup time, and
1.23 * is guaranteed to be called before any other methods.
1.24 * @return TRUE if the driver was successfully initialized, otherwise
1.25 @@ -178,6 +185,10 @@
1.26
1.27 } *display_driver_t;
1.28
1.29 +/**
1.30 + * Print the configured video drivers to the output stream, one to a line.
1.31 + */
1.32 +void print_display_drivers( FILE *out );
1.33 display_driver_t get_display_driver_by_name( const char *name );
1.34 gboolean display_set_driver( display_driver_t driver );
1.35
.