src/video/x11/SDL_x11video.h
author Sam Lantinga
Tue, 08 Feb 2011 16:50:51 -0800
changeset 5229 c015d3e63631
parent 5218 572a73d71b5f
child 5243 3a8a452b49f0
permissions -rw-r--r--
Fixed setting the texture unit, still doesn't work.
slouken@1950
     1
/*
slouken@1950
     2
    SDL - Simple DirectMedia Layer
slouken@3697
     3
    Copyright (C) 1997-2010 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@5154
    27
#include "SDL_keysym.h"
slouken@5154
    28
slouken@1950
    29
#include "../SDL_sysvideo.h"
slouken@1950
    30
slouken@1950
    31
#include <X11/Xlib.h>
slouken@1950
    32
#include <X11/Xutil.h>
slouken@1950
    33
#include <X11/Xatom.h>
slouken@1950
    34
slouken@1950
    35
#if SDL_VIDEO_DRIVER_X11_XINERAMA
slouken@1950
    36
#include "../Xext/extensions/Xinerama.h"
slouken@1950
    37
#endif
slouken@1950
    38
#if SDL_VIDEO_DRIVER_X11_XRANDR
slouken@1950
    39
#include <X11/extensions/Xrandr.h>
slouken@1950
    40
#endif
slouken@1950
    41
#if SDL_VIDEO_DRIVER_X11_VIDMODE
slouken@1950
    42
#include "../Xext/extensions/xf86vmode.h"
slouken@1950
    43
#endif
icculus@2763
    44
#if SDL_VIDEO_DRIVER_X11_XINPUT
icculus@2763
    45
#include <X11/extensions/XInput.h>
icculus@2763
    46
#endif
slouken@3025
    47
#if SDL_VIDEO_DRIVER_X11_SCRNSAVER
slouken@3025
    48
#include <X11/extensions/scrnsaver.h>
slouken@3025
    49
#endif
icculus@4794
    50
#if SDL_VIDEO_DRIVER_X11_XSHAPE
icculus@4794
    51
#include <X11/extensions/shape.h>
icculus@4794
    52
#endif
slouken@1950
    53
slouken@1950
    54
#include "SDL_x11dyn.h"
slouken@1950
    55
slouken@4508
    56
#include "SDL_x11clipboard.h"
slouken@1951
    57
#include "SDL_x11events.h"
slouken@2171
    58
#include "SDL_x11gamma.h"
slouken@1951
    59
#include "SDL_x11keyboard.h"
slouken@1951
    60
#include "SDL_x11modes.h"
slouken@1951
    61
#include "SDL_x11mouse.h"
slouken@1952
    62
#include "SDL_x11opengl.h"
slouken@1951
    63
#include "SDL_x11window.h"
slouken@1951
    64
slouken@1950
    65
/* Private display data */
slouken@1950
    66
slouken@1950
    67
typedef struct SDL_VideoData
slouken@1950
    68
{
slouken@1950
    69
    Display *display;
slouken@1951
    70
    char *classname;
slouken@1951
    71
    XIM im;
slouken@3025
    72
    Uint32 screensaver_activity;
slouken@1951
    73
    int numwindows;
slouken@1951
    74
    SDL_WindowData **windowlist;
bob@2324
    75
    int windowlistlength;
slouken@4518
    76
slouken@4518
    77
    /* This is true for ICCCM2.0-compliant window managers */
slouken@4518
    78
    SDL_bool net_wm;
slouken@4518
    79
slouken@4518
    80
    /* Useful atoms */
slouken@1951
    81
    Atom WM_DELETE_WINDOW;
slouken@4518
    82
    Atom _NET_WM_STATE;
slouken@4518
    83
    Atom _NET_WM_STATE_HIDDEN;
slouken@4518
    84
    Atom _NET_WM_STATE_MAXIMIZED_VERT;
slouken@4518
    85
    Atom _NET_WM_STATE_MAXIMIZED_HORZ;
slouken@4518
    86
    Atom _NET_WM_STATE_FULLSCREEN;
slouken@4518
    87
    Atom _NET_WM_NAME;
slouken@4518
    88
    Atom _NET_WM_ICON_NAME;
slouken@4518
    89
    Atom _NET_WM_ICON;
slouken@4518
    90
    Atom UTF8_STRING;
slouken@4518
    91
slouken@5218
    92
    SDL_Scancode key_layout[256];
slouken@4508
    93
    SDL_bool selection_waiting;
slouken@1950
    94
} SDL_VideoData;
slouken@1950
    95
slouken@4472
    96
extern SDL_bool X11_UseDirectColorVisuals(void);
slouken@2963
    97
slouken@1950
    98
#endif /* _SDL_x11video_h */
slouken@1950
    99
slouken@1950
   100
/* vi: set ts=4 sw=4 expandtab: */