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.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 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_keysym.h"
    28 
    29 #include "../SDL_sysvideo.h"
    30 
    31 #include <X11/Xlib.h>
    32 #include <X11/Xutil.h>
    33 #include <X11/Xatom.h>
    34 
    35 #if SDL_VIDEO_DRIVER_X11_XINERAMA
    36 #include "../Xext/extensions/Xinerama.h"
    37 #endif
    38 #if SDL_VIDEO_DRIVER_X11_XRANDR
    39 #include <X11/extensions/Xrandr.h>
    40 #endif
    41 #if SDL_VIDEO_DRIVER_X11_VIDMODE
    42 #include "../Xext/extensions/xf86vmode.h"
    43 #endif
    44 #if SDL_VIDEO_DRIVER_X11_XINPUT
    45 #include <X11/extensions/XInput.h>
    46 #endif
    47 #if SDL_VIDEO_DRIVER_X11_SCRNSAVER
    48 #include <X11/extensions/scrnsaver.h>
    49 #endif
    50 #if SDL_VIDEO_DRIVER_X11_XSHAPE
    51 #include <X11/extensions/shape.h>
    52 #endif
    53 
    54 #include "SDL_x11dyn.h"
    55 
    56 #include "SDL_x11clipboard.h"
    57 #include "SDL_x11events.h"
    58 #include "SDL_x11gamma.h"
    59 #include "SDL_x11keyboard.h"
    60 #include "SDL_x11modes.h"
    61 #include "SDL_x11mouse.h"
    62 #include "SDL_x11opengl.h"
    63 #include "SDL_x11window.h"
    64 
    65 /* Private display data */
    66 
    67 typedef struct SDL_VideoData
    68 {
    69     Display *display;
    70     char *classname;
    71     XIM im;
    72     Uint32 screensaver_activity;
    73     int numwindows;
    74     SDL_WindowData **windowlist;
    75     int windowlistlength;
    76 
    77     /* This is true for ICCCM2.0-compliant window managers */
    78     SDL_bool net_wm;
    79 
    80     /* Useful atoms */
    81     Atom WM_DELETE_WINDOW;
    82     Atom _NET_WM_STATE;
    83     Atom _NET_WM_STATE_HIDDEN;
    84     Atom _NET_WM_STATE_MAXIMIZED_VERT;
    85     Atom _NET_WM_STATE_MAXIMIZED_HORZ;
    86     Atom _NET_WM_STATE_FULLSCREEN;
    87     Atom _NET_WM_NAME;
    88     Atom _NET_WM_ICON_NAME;
    89     Atom _NET_WM_ICON;
    90     Atom UTF8_STRING;
    91 
    92     SDL_Scancode key_layout[256];
    93     SDL_bool selection_waiting;
    94 } SDL_VideoData;
    95 
    96 extern SDL_bool X11_UseDirectColorVisuals(void);
    97 
    98 #endif /* _SDL_x11video_h */
    99 
   100 /* vi: set ts=4 sw=4 expandtab: */