src/video/SDL_sysvideo.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 09 Jul 2006 18:09:16 +0000
branchSDL-1.3
changeset 1734 f7c667ded87d
parent 1733 0b1070f2f94d
permissions -rw-r--r--
The general code handles restoring video mode/gamma/etc. when the window loses focus.
Support for changing fullscreen/windowed mode in progress.
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@0
     4
slouken@0
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@0
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@0
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@0
    23
slouken@0
    24
#ifndef _SDL_sysvideo_h
slouken@0
    25
#define _SDL_sysvideo_h
slouken@0
    26
slouken@0
    27
#include "SDL_mouse.h"
slouken@0
    28
slouken@0
    29
/* The SDL video driver */
slouken@1662
    30
slouken@1670
    31
typedef struct SDL_Window SDL_Window;
slouken@1670
    32
typedef struct SDL_Texture SDL_Texture;
slouken@1670
    33
typedef struct SDL_Renderer SDL_Renderer;
slouken@1670
    34
typedef struct SDL_RenderDriver SDL_RenderDriver;
slouken@1670
    35
typedef struct SDL_VideoDisplay SDL_VideoDisplay;
slouken@1670
    36
typedef struct SDL_VideoDevice SDL_VideoDevice;
slouken@1670
    37
slouken@1670
    38
/* Define the SDL texture structure */
slouken@1670
    39
struct SDL_Texture
slouken@1670
    40
{
slouken@1670
    41
    Uint32 id;
slouken@1670
    42
slouken@1670
    43
    Uint32 format;      /**< The pixel format of the texture */
slouken@1670
    44
    int access;         /**< SDL_TextureAccess */
slouken@1670
    45
    int w;              /**< The width of the texture */
slouken@1670
    46
    int h;              /**< The height of the texture */
slouken@1670
    47
slouken@1670
    48
    SDL_Renderer *renderer;
slouken@1670
    49
slouken@1670
    50
    void *driverdata;   /**< Driver specific texture representation */
slouken@1670
    51
slouken@1670
    52
    SDL_Texture *next;
slouken@1670
    53
};
slouken@1670
    54
slouken@1670
    55
/* Define the SDL renderer structure */
slouken@1670
    56
struct SDL_Renderer
slouken@1670
    57
{
slouken@1676
    58
    int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
slouken@1678
    59
    int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1678
    60
                               void **pixels, int *pitch);
slouken@1680
    61
    int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1681
    62
                              const SDL_Color * colors, int firstcolor,
slouken@1681
    63
                              int ncolors);
slouken@1681
    64
    int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1680
    65
                              SDL_Color * colors, int firstcolor,
slouken@1680
    66
                              int ncolors);
slouken@1676
    67
    int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1681
    68
                          const SDL_Rect * rect, const void *pixels,
slouken@1681
    69
                          int pitch);
slouken@1676
    70
    int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1681
    71
                        const SDL_Rect * rect, int markDirty, void **pixels,
slouken@1676
    72
                        int *pitch);
slouken@1676
    73
    void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
slouken@1676
    74
    void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1681
    75
                          int numrects, const SDL_Rect * rects);
slouken@1676
    76
    void (*SelectRenderTexture) (SDL_Renderer * renderer,
slouken@1676
    77
                                 SDL_Texture * texture);
slouken@1720
    78
    int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect,
slouken@1720
    79
                       Uint32 color);
slouken@1676
    80
    int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
slouken@1681
    81
                       const SDL_Rect * srcrect, const SDL_Rect * dstrect,
slouken@1681
    82
                       int blendMode, int scaleMode);
slouken@1681
    83
    int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
slouken@1676
    84
                             void *pixels, int pitch);
slouken@1681
    85
    int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
slouken@1676
    86
                              const void *pixels, int pitch);
slouken@1676
    87
    void (*RenderPresent) (SDL_Renderer * renderer);
slouken@1676
    88
    void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
slouken@1670
    89
slouken@1670
    90
    void (*DestroyRenderer) (SDL_Renderer * renderer);
slouken@1670
    91
slouken@1670
    92
    /* The current renderer info */
slouken@1670
    93
    SDL_RendererInfo info;
slouken@1670
    94
slouken@1670
    95
    /* The window associated with the renderer */
slouken@1706
    96
    SDL_WindowID window;
slouken@1670
    97
slouken@1670
    98
    void *driverdata;
slouken@1670
    99
};
slouken@1670
   100
slouken@1670
   101
/* Define the SDL render driver structure */
slouken@1670
   102
struct SDL_RenderDriver
slouken@1670
   103
{
slouken@1670
   104
    SDL_Renderer *(*CreateRenderer) (SDL_Window * window, Uint32 flags);
slouken@1670
   105
slouken@1670
   106
    /* Info about the renderer capabilities */
slouken@1670
   107
    SDL_RendererInfo info;
slouken@1670
   108
};
slouken@1670
   109
slouken@1662
   110
/* Define the SDL window structure, corresponding to toplevel windows */
slouken@1662
   111
struct SDL_Window
slouken@1662
   112
{
slouken@1662
   113
    Uint32 id;
slouken@1662
   114
slouken@1662
   115
    char *title;
slouken@1662
   116
    int x, y;
slouken@1662
   117
    int w, h;
slouken@1662
   118
    Uint32 flags;
slouken@1662
   119
slouken@1706
   120
    int display;
slouken@1670
   121
    SDL_Renderer *renderer;
slouken@1670
   122
slouken@1662
   123
    void *userdata;
slouken@1662
   124
    void *driverdata;
slouken@1662
   125
};
slouken@1733
   126
#define FULLSCREEN_VISIBLE(W) \
slouken@1734
   127
    (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
slouken@1734
   128
     ((W)->flags & SDL_WINDOW_SHOWN) && \
slouken@1734
   129
     !((W)->flags & SDL_WINDOW_MINIMIZED))
slouken@1662
   130
slouken@1662
   131
/* Define the SDL display structure
slouken@1662
   132
   This corresponds to physical monitors attached to the system.
slouken@1662
   133
 */
slouken@1670
   134
struct SDL_VideoDisplay
slouken@1662
   135
{
slouken@1725
   136
    int max_display_modes;
slouken@1662
   137
    int num_display_modes;
slouken@1662
   138
    SDL_DisplayMode *display_modes;
slouken@1662
   139
    SDL_DisplayMode desktop_mode;
slouken@1662
   140
    SDL_DisplayMode current_mode;
slouken@1733
   141
    SDL_DisplayMode desired_mode;
slouken@1733
   142
    SDL_DisplayMode *fullscreen_mode;
slouken@1683
   143
    SDL_Palette *palette;
slouken@1662
   144
slouken@1733
   145
    Uint16 *gamma;
slouken@1733
   146
    Uint16 *saved_gamma;        /* (just offset into gamma) */
slouken@1733
   147
slouken@1670
   148
    int num_render_drivers;
slouken@1670
   149
    SDL_RenderDriver *render_drivers;
slouken@1670
   150
slouken@1662
   151
    int num_windows;
slouken@1662
   152
    SDL_Window *windows;
slouken@1662
   153
slouken@1670
   154
    SDL_Renderer *current_renderer;
slouken@1670
   155
slouken@1670
   156
    /* The hash list of textures */
slouken@1670
   157
    SDL_Texture *textures[64];
slouken@1670
   158
slouken@1682
   159
    SDL_VideoDevice *device;
slouken@1682
   160
slouken@1662
   161
    void *driverdata;
slouken@1670
   162
};
slouken@0
   163
slouken@0
   164
/* Define the SDL video driver structure */
slouken@0
   165
#define _THIS	SDL_VideoDevice *_this
slouken@0
   166
slouken@1662
   167
struct SDL_VideoDevice
slouken@1662
   168
{
slouken@1662
   169
    /* * * */
slouken@1662
   170
    /* The name of this video driver */
slouken@1662
   171
    const char *name;
slouken@0
   172
slouken@1662
   173
    /* * * */
slouken@1662
   174
    /* Initialization/Query functions */
slouken@0
   175
slouken@1662
   176
    /* Initialize the native video subsystem, filling in the list
slouken@1662
   177
       of displays for this driver, returning 0 or -1 if there's an error.
slouken@1662
   178
     */
slouken@1662
   179
    int (*VideoInit) (_THIS);
slouken@0
   180
slouken@1662
   181
    /* * * */
slouken@1662
   182
    /* Display functions
slouken@1662
   183
     */
slouken@1733
   184
slouken@1733
   185
    /* Get a list of the available display modes.
slouken@1733
   186
     * e.g.  SDL_AddDisplayMode(_this->current_display, mode)
slouken@1733
   187
     */
slouken@1733
   188
    void (*GetDisplayModes) (_THIS);
slouken@1733
   189
slouken@1662
   190
    /* Setting the display mode is independent of creating windows,
slouken@1662
   191
     * so when the display mode is changed, all existing windows
slouken@1662
   192
     * should have their data updated accordingly, including the
slouken@1662
   193
     * display surfaces associated with them.
slouken@1662
   194
     */
slouken@1725
   195
    int (*SetDisplayMode) (_THIS, SDL_DisplayMode * mode);
slouken@0
   196
slouken@1733
   197
    /* Set the color entries of the display palette */
slouken@1681
   198
    int (*SetDisplayPalette) (_THIS, SDL_Palette * palette);
slouken@1670
   199
slouken@1733
   200
    /* Get the color entries of the display palette */
slouken@1733
   201
    int (*GetDisplayPalette) (_THIS, SDL_Palette * palette);
slouken@1733
   202
slouken@1733
   203
    /* Set the gamma ramp */
slouken@1733
   204
    int (*SetDisplayGammaRamp) (_THIS, Uint16 * ramp);
slouken@1733
   205
slouken@1733
   206
    /* Get the gamma ramp */
slouken@1733
   207
    int (*GetDisplayGammaRamp) (_THIS, Uint16 * ramp);
slouken@1733
   208
slouken@1662
   209
    /* * * */
slouken@1662
   210
    /* Window functions
slouken@1662
   211
     */
slouken@1662
   212
    int (*CreateWindow) (_THIS, SDL_Window * window);
slouken@1681
   213
    int (*CreateWindowFrom) (_THIS, SDL_Window * window, const void *data);
slouken@1662
   214
    void (*SetWindowTitle) (_THIS, SDL_Window * window);
slouken@1662
   215
    void (*SetWindowPosition) (_THIS, SDL_Window * window);
slouken@1662
   216
    void (*SetWindowSize) (_THIS, SDL_Window * window);
slouken@1662
   217
    void (*ShowWindow) (_THIS, SDL_Window * window);
slouken@1662
   218
    void (*HideWindow) (_THIS, SDL_Window * window);
slouken@1662
   219
    void (*RaiseWindow) (_THIS, SDL_Window * window);
slouken@1662
   220
    void (*MaximizeWindow) (_THIS, SDL_Window * window);
slouken@1662
   221
    void (*MinimizeWindow) (_THIS, SDL_Window * window);
slouken@1662
   222
    void (*RestoreWindow) (_THIS, SDL_Window * window);
slouken@1662
   223
    void (*SetWindowGrab) (_THIS, SDL_Window * window);
slouken@1662
   224
    void (*DestroyWindow) (_THIS, SDL_Window * window);
slouken@0
   225
slouken@1662
   226
    /* Get some platform dependent window information */
slouken@1668
   227
      SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
slouken@1720
   228
                                  struct SDL_SysWMinfo * info);
slouken@0
   229
slouken@1662
   230
    /* Reverse the effects VideoInit() -- called if VideoInit() fails
slouken@1662
   231
       or if the application is shutting down the video subsystem.
slouken@1662
   232
     */
slouken@1662
   233
    void (*VideoQuit) (_THIS);
slouken@0
   234
slouken@1662
   235
    /* * * */
slouken@1662
   236
    /* OpenGL support */
slouken@0
   237
slouken@1662
   238
    /* Sets the dll to use for OpenGL and loads it */
slouken@1662
   239
    int (*GL_LoadLibrary) (_THIS, const char *path);
slouken@0
   240
slouken@1662
   241
    /* Retrieves the address of a function in the gl library */
slouken@1662
   242
    void *(*GL_GetProcAddress) (_THIS, const char *proc);
slouken@0
   243
slouken@1662
   244
    /* Get attribute information from the windowing system. */
slouken@1662
   245
    int (*GL_GetAttribute) (_THIS, SDL_GLattr attrib, int *value);
slouken@0
   246
slouken@1662
   247
    /* Make the context associated with this driver current */
slouken@1662
   248
    int (*GL_MakeCurrent) (_THIS);
slouken@0
   249
slouken@1662
   250
    /* Swap the current buffers in double buffer mode. */
slouken@1662
   251
    void (*GL_SwapBuffers) (_THIS);
slouken@0
   252
slouken@1662
   253
    /* Determine whether the mouse should be in relative mode or not.
slouken@1662
   254
       This function is called when the input grab state or cursor
slouken@1662
   255
       visibility state changes.
slouken@1662
   256
       If the cursor is not visible, and the input is grabbed, the
slouken@1662
   257
       driver can place the mouse in relative mode, which may result
slouken@1662
   258
       in higher accuracy sampling of the pointer motion.
slouken@1662
   259
     */
slouken@1662
   260
    void (*CheckMouseMode) (_THIS);
slouken@0
   261
slouken@1662
   262
    /* * * */
slouken@1662
   263
    /* Event manager functions */
slouken@0
   264
slouken@1662
   265
    /* Handle any queued OS events */
slouken@1662
   266
    void (*PumpEvents) (_THIS);
slouken@0
   267
slouken@1662
   268
    /* * * */
slouken@1662
   269
    /* Data common to all drivers */
slouken@1662
   270
    int num_displays;
slouken@1662
   271
    SDL_VideoDisplay *displays;
slouken@1662
   272
    int current_display;
slouken@1670
   273
    Uint32 next_object_id;
slouken@0
   274
slouken@1662
   275
    /* Driver information flags */
slouken@0
   276
slouken@1662
   277
    /* * * */
slouken@1662
   278
    /* Data used by the GL drivers */
slouken@1662
   279
    struct
slouken@1662
   280
    {
slouken@1662
   281
        int red_size;
slouken@1662
   282
        int green_size;
slouken@1662
   283
        int blue_size;
slouken@1662
   284
        int alpha_size;
slouken@1662
   285
        int depth_size;
slouken@1662
   286
        int buffer_size;
slouken@1662
   287
        int stencil_size;
slouken@1662
   288
        int double_buffer;
slouken@1662
   289
        int accum_red_size;
slouken@1662
   290
        int accum_green_size;
slouken@1662
   291
        int accum_blue_size;
slouken@1662
   292
        int accum_alpha_size;
slouken@1662
   293
        int stereo;
slouken@1662
   294
        int multisamplebuffers;
slouken@1662
   295
        int multisamplesamples;
slouken@1662
   296
        int accelerated;
slouken@1662
   297
        int driver_loaded;
slouken@1662
   298
        char driver_path[256];
slouken@1662
   299
        void *dll_handle;
slouken@1662
   300
    } gl_config;
slouken@0
   301
slouken@1662
   302
    /* * * */
slouken@1662
   303
    /* Data private to this driver */
slouken@1720
   304
    void *driverdata;
slouken@1662
   305
    struct SDL_PrivateGLData *gl_data;
slouken@0
   306
slouken@1662
   307
    /* * * */
slouken@1662
   308
    /* The function used to dispose of this structure */
slouken@1662
   309
    void (*free) (_THIS);
slouken@0
   310
};
slouken@0
   311
slouken@1662
   312
typedef struct VideoBootStrap
slouken@1662
   313
{
slouken@1662
   314
    const char *name;
slouken@1662
   315
    const char *desc;
slouken@1662
   316
    int (*available) (void);
slouken@1662
   317
    SDL_VideoDevice *(*create) (int devindex);
slouken@0
   318
} VideoBootStrap;
slouken@0
   319
slouken@1361
   320
#if SDL_VIDEO_DRIVER_QUARTZ
slouken@1361
   321
extern VideoBootStrap QZ_bootstrap;
slouken@1361
   322
#endif
slouken@1361
   323
#if SDL_VIDEO_DRIVER_X11
slouken@0
   324
extern VideoBootStrap X11_bootstrap;
slouken@0
   325
#endif
slouken@1361
   326
#if SDL_VIDEO_DRIVER_DGA
slouken@0
   327
extern VideoBootStrap DGA_bootstrap;
slouken@0
   328
#endif
slouken@1361
   329
#if SDL_VIDEO_DRIVER_NANOX
slouken@30
   330
extern VideoBootStrap NX_bootstrap;
slouken@30
   331
#endif
slouken@1361
   332
#if SDL_VIDEO_DRIVER_IPOD
icculus@1140
   333
extern VideoBootStrap iPod_bootstrap;
icculus@1140
   334
#endif
slouken@1361
   335
#if SDL_VIDEO_DRIVER_QTOPIA
slouken@1361
   336
extern VideoBootStrap Qtopia_bootstrap;
slouken@1361
   337
#endif
slouken@1361
   338
#if SDL_VIDEO_DRIVER_WSCONS
slouken@1361
   339
extern VideoBootStrap WSCONS_bootstrap;
slouken@1361
   340
#endif
slouken@1361
   341
#if SDL_VIDEO_DRIVER_FBCON
slouken@0
   342
extern VideoBootStrap FBCON_bootstrap;
slouken@0
   343
#endif
slouken@1361
   344
#if SDL_VIDEO_DRIVER_DIRECTFB
slouken@167
   345
extern VideoBootStrap DirectFB_bootstrap;
slouken@167
   346
#endif
slouken@1361
   347
#if SDL_VIDEO_DRIVER_PS2GS
slouken@0
   348
extern VideoBootStrap PS2GS_bootstrap;
slouken@0
   349
#endif
slouken@1361
   350
#if SDL_VIDEO_DRIVER_GGI
slouken@0
   351
extern VideoBootStrap GGI_bootstrap;
slouken@0
   352
#endif
slouken@1361
   353
#if SDL_VIDEO_DRIVER_VGL
slouken@75
   354
extern VideoBootStrap VGL_bootstrap;
slouken@75
   355
#endif
slouken@1361
   356
#if SDL_VIDEO_DRIVER_SVGALIB
slouken@0
   357
extern VideoBootStrap SVGALIB_bootstrap;
slouken@0
   358
#endif
slouken@1361
   359
#if SDL_VIDEO_DRIVER_GAPI
slouken@1361
   360
extern VideoBootStrap GAPI_bootstrap;
slouken@1361
   361
#endif
slouken@1712
   362
#if SDL_VIDEO_DRIVER_WIN32
slouken@1712
   363
extern VideoBootStrap WIN32_bootstrap;
slouken@1361
   364
#endif
slouken@1361
   365
#if SDL_VIDEO_DRIVER_BWINDOW
slouken@1361
   366
extern VideoBootStrap BWINDOW_bootstrap;
slouken@1361
   367
#endif
slouken@1361
   368
#if SDL_VIDEO_DRIVER_TOOLBOX
slouken@1361
   369
extern VideoBootStrap TOOLBOX_bootstrap;
slouken@1361
   370
#endif
slouken@1361
   371
#if SDL_VIDEO_DRIVER_DRAWSPROCKET
slouken@1361
   372
extern VideoBootStrap DSp_bootstrap;
slouken@1361
   373
#endif
slouken@1361
   374
#if SDL_VIDEO_DRIVER_CYBERGRAPHICS
slouken@1361
   375
extern VideoBootStrap CGX_bootstrap;
slouken@1361
   376
#endif
slouken@1361
   377
#if SDL_VIDEO_DRIVER_PHOTON
slouken@1361
   378
extern VideoBootStrap ph_bootstrap;
slouken@1361
   379
#endif
slouken@1361
   380
#if SDL_VIDEO_DRIVER_EPOC
slouken@1361
   381
extern VideoBootStrap EPOC_bootstrap;
slouken@1361
   382
#endif
slouken@1361
   383
#if SDL_VIDEO_DRIVER_XBIOS
slouken@1361
   384
extern VideoBootStrap XBIOS_bootstrap;
slouken@1361
   385
#endif
slouken@1361
   386
#if SDL_VIDEO_DRIVER_GEM
slouken@1361
   387
extern VideoBootStrap GEM_bootstrap;
slouken@1361
   388
#endif
slouken@1361
   389
#if SDL_VIDEO_DRIVER_PICOGUI
slouken@1361
   390
extern VideoBootStrap PG_bootstrap;
slouken@1361
   391
#endif
slouken@1361
   392
#if SDL_VIDEO_DRIVER_DC
slouken@1361
   393
extern VideoBootStrap DC_bootstrap;
slouken@1361
   394
#endif
slouken@1361
   395
#if SDL_VIDEO_DRIVER_RISCOS
slouken@1361
   396
extern VideoBootStrap RISCOS_bootstrap;
slouken@1361
   397
#endif
slouken@1361
   398
#if SDL_VIDEO_DRIVER_OS2FS
slouken@1361
   399
extern VideoBootStrap OS2FSLib_bootstrap;
slouken@1361
   400
#endif
slouken@1361
   401
#if SDL_VIDEO_DRIVER_AALIB
slouken@0
   402
extern VideoBootStrap AALIB_bootstrap;
slouken@0
   403
#endif
slouken@1361
   404
#if SDL_VIDEO_DRIVER_DUMMY
slouken@173
   405
extern VideoBootStrap DUMMY_bootstrap;
slouken@173
   406
#endif
slouken@1658
   407
#if SDL_VIDEO_DRIVER_GLSDL
slouken@1658
   408
extern VideoBootStrap glSDL_bootstrap;
slouken@1658
   409
#endif
slouken@1361
   410
slouken@1662
   411
#define SDL_CurrentDisplay	(_this->displays[_this->current_display])
slouken@0
   412
slouken@1668
   413
extern SDL_VideoDevice *SDL_GetVideoDevice();
slouken@1677
   414
extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
slouken@1677
   415
extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
slouken@1725
   416
extern SDL_bool SDL_AddDisplayMode(int displayIndex,
slouken@1725
   417
                                   const SDL_DisplayMode * mode);
slouken@1670
   418
extern void SDL_AddRenderDriver(int displayIndex,
slouken@1670
   419
                                const SDL_RenderDriver * driver);
slouken@0
   420
slouken@1706
   421
extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
slouken@1706
   422
extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window);
slouken@1706
   423
slouken@1733
   424
extern void SDL_OnWindowShown(SDL_Window * window);
slouken@1733
   425
extern void SDL_OnWindowHidden(SDL_Window * window);
slouken@1733
   426
extern void SDL_OnWindowFocusGained(SDL_Window * window);
slouken@1733
   427
extern void SDL_OnWindowFocusLost(SDL_Window * window);
slouken@1734
   428
extern SDL_WindowID SDL_GetFocusWindow(void);
slouken@1733
   429
slouken@0
   430
#endif /* _SDL_sysvideo_h */
slouken@1662
   431
slouken@1662
   432
/* vi: set ts=4 sw=4 expandtab: */