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