src/video/x11/SDL_x11video.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 3025 54fac87e1f34
child 3697 f7b03b6838cb
permissions -rw-r--r--
Fixed bug #906

Added better error reporting for OpenGL context creation failing.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_x11video_h
    25 #define _SDL_x11video_h
    26 
    27 #include "../SDL_sysvideo.h"
    28 
    29 #include <X11/Xlib.h>
    30 #include <X11/Xutil.h>
    31 #include <X11/Xatom.h>
    32 
    33 #if SDL_VIDEO_DRIVER_X11_XINERAMA
    34 #include "../Xext/extensions/Xinerama.h"
    35 #endif
    36 #if SDL_VIDEO_DRIVER_X11_XRANDR
    37 #include <X11/extensions/Xrandr.h>
    38 #endif
    39 #if SDL_VIDEO_DRIVER_X11_VIDMODE
    40 #include "../Xext/extensions/xf86vmode.h"
    41 #endif
    42 #if SDL_VIDEO_DRIVER_X11_XINPUT
    43 #include <X11/extensions/XInput.h>
    44 #endif
    45 #if SDL_VIDEO_DRIVER_X11_SCRNSAVER
    46 #include <X11/extensions/scrnsaver.h>
    47 #endif
    48 
    49 #include "SDL_x11dyn.h"
    50 
    51 #include "SDL_x11events.h"
    52 #include "SDL_x11gamma.h"
    53 #include "SDL_x11keyboard.h"
    54 #include "SDL_x11modes.h"
    55 #include "SDL_x11mouse.h"
    56 #include "SDL_x11opengl.h"
    57 #include "SDL_x11window.h"
    58 
    59 /* Private display data */
    60 
    61 typedef struct SDL_VideoData
    62 {
    63     Display *display;
    64     char *classname;
    65     XIM im;
    66     Uint32 screensaver_activity;
    67     int numwindows;
    68     SDL_WindowData **windowlist;
    69     int windowlistlength;
    70     int keyboard;
    71     Atom WM_DELETE_WINDOW;
    72     SDL_scancode key_layout[256];
    73 } SDL_VideoData;
    74 
    75 extern SDL_bool X11_UseDirectColorVisuals();
    76 
    77 #endif /* _SDL_x11video_h */
    78 
    79 /* vi: set ts=4 sw=4 expandtab: */