include/SDL_video.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 11 Mar 2011 08:49:20 -0800
changeset 5466 006883d5fa51
parent 5403 424f036f7c68
child 5504 469da3d31cbd
permissions -rw-r--r--
Gamma support is back!

New API functions:
SDL_SetWindowBrightness()
SDL_GetWindowBrightness()
SDL_SetWindowGammaRamp()
SDL_GetWindowGammaRamp()
SDL_CalculateGammaRamp()
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@5262
     3
    Copyright (C) 1997-2011 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@251
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@0
    22
slouken@1895
    23
/**
slouken@3407
    24
 *  \file SDL_video.h
slouken@3407
    25
 *  
slouken@3407
    26
 *  Header file for SDL video functions.
slouken@1895
    27
 */
slouken@0
    28
slouken@0
    29
#ifndef _SDL_video_h
slouken@0
    30
#define _SDL_video_h
slouken@0
    31
slouken@1356
    32
#include "SDL_stdinc.h"
slouken@1895
    33
#include "SDL_pixels.h"
slouken@2275
    34
#include "SDL_rect.h"
slouken@2275
    35
#include "SDL_surface.h"
slouken@0
    36
slouken@0
    37
#include "begin_code.h"
slouken@0
    38
/* Set up for C function definitions, even when using C++ */
slouken@0
    39
#ifdef __cplusplus
slouken@1895
    40
/* *INDENT-OFF* */
slouken@0
    41
extern "C" {
slouken@1895
    42
/* *INDENT-ON* */
slouken@0
    43
#endif
slouken@0
    44
slouken@1895
    45
/**
slouken@3407
    46
 *  \brief  The structure that defines a display mode
slouken@3407
    47
 *  
slouken@3407
    48
 *  \sa SDL_GetNumDisplayModes()
slouken@3407
    49
 *  \sa SDL_GetDisplayMode()
slouken@3407
    50
 *  \sa SDL_GetDesktopDisplayMode()
slouken@3407
    51
 *  \sa SDL_GetCurrentDisplayMode()
slouken@3407
    52
 *  \sa SDL_GetClosestDisplayMode()
slouken@3500
    53
 *  \sa SDL_SetWindowDisplayMode()
slouken@3500
    54
 *  \sa SDL_GetWindowDisplayMode()
slouken@1895
    55
 */
slouken@1895
    56
typedef struct
slouken@1895
    57
{
slouken@1895
    58
    Uint32 format;              /**< pixel format */
slouken@1895
    59
    int w;                      /**< width */
slouken@1895
    60
    int h;                      /**< height */
slouken@1895
    61
    int refresh_rate;           /**< refresh rate (or zero for unspecified) */
slouken@1895
    62
    void *driverdata;           /**< driver-specific data, initialize to 0 */
slouken@1895
    63
} SDL_DisplayMode;
slouken@0
    64
slouken@1895
    65
/**
slouken@3407
    66
 *  \brief The type used to identify a window
slouken@3407
    67
 *  
slouken@3407
    68
 *  \sa SDL_CreateWindow()
slouken@3407
    69
 *  \sa SDL_CreateWindowFrom()
slouken@3407
    70
 *  \sa SDL_DestroyWindow()
slouken@3407
    71
 *  \sa SDL_GetWindowData()
slouken@3407
    72
 *  \sa SDL_GetWindowFlags()
slouken@3407
    73
 *  \sa SDL_GetWindowGrab()
slouken@3407
    74
 *  \sa SDL_GetWindowPosition()
slouken@3407
    75
 *  \sa SDL_GetWindowSize()
slouken@3407
    76
 *  \sa SDL_GetWindowTitle()
slouken@3407
    77
 *  \sa SDL_HideWindow()
slouken@3407
    78
 *  \sa SDL_MaximizeWindow()
slouken@3407
    79
 *  \sa SDL_MinimizeWindow()
slouken@3407
    80
 *  \sa SDL_RaiseWindow()
slouken@3407
    81
 *  \sa SDL_RestoreWindow()
slouken@3407
    82
 *  \sa SDL_SetWindowData()
slouken@3407
    83
 *  \sa SDL_SetWindowFullscreen()
slouken@3407
    84
 *  \sa SDL_SetWindowGrab()
slouken@3407
    85
 *  \sa SDL_SetWindowIcon()
slouken@3407
    86
 *  \sa SDL_SetWindowPosition()
slouken@3407
    87
 *  \sa SDL_SetWindowSize()
slouken@3407
    88
 *  \sa SDL_SetWindowTitle()
slouken@3407
    89
 *  \sa SDL_ShowWindow()
slouken@1895
    90
 */
slouken@3685
    91
typedef struct SDL_Window SDL_Window;
slouken@0
    92
slouken@1895
    93
/**
slouken@3407
    94
 *  \brief The flags on a window
slouken@3407
    95
 *  
slouken@3407
    96
 *  \sa SDL_GetWindowFlags()
slouken@1895
    97
 */
slouken@1895
    98
typedef enum
slouken@1895
    99
{
slouken@5380
   100
    SDL_WINDOW_FULLSCREEN = 0x00000001,         /**< fullscreen window */
slouken@1895
   101
    SDL_WINDOW_OPENGL = 0x00000002,             /**< window usable with OpenGL context */
slouken@1895
   102
    SDL_WINDOW_SHOWN = 0x00000004,              /**< window is visible */
slouken@5380
   103
    SDL_WINDOW_HIDDEN = 0x00000008,             /**< window is not visible */
slouken@5380
   104
    SDL_WINDOW_BORDERLESS = 0x00000010,         /**< no window decoration */
slouken@5380
   105
    SDL_WINDOW_RESIZABLE = 0x00000020,          /**< window can be resized */
slouken@5380
   106
    SDL_WINDOW_MINIMIZED = 0x00000040,          /**< window is minimized */
slouken@5380
   107
    SDL_WINDOW_MAXIMIZED = 0x00000080,          /**< window is maximized */
slouken@1895
   108
    SDL_WINDOW_INPUT_GRABBED = 0x00000100,      /**< window has grabbed input focus */
slouken@1895
   109
    SDL_WINDOW_INPUT_FOCUS = 0x00000200,        /**< window has input focus */
slouken@3057
   110
    SDL_WINDOW_MOUSE_FOCUS = 0x00000400,        /**< window has mouse focus */
slouken@3057
   111
    SDL_WINDOW_FOREIGN = 0x00000800             /**< window not created by SDL */
slouken@1895
   112
} SDL_WindowFlags;
slouken@0
   113
slouken@1895
   114
/**
slouken@3407
   115
 *  \brief Used to indicate that you don't care what the window position is.
slouken@1895
   116
 */
slouken@5246
   117
#define SDL_WINDOWPOS_UNDEFINED_MASK    0x1FFF0000
slouken@5246
   118
#define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X)  (SDL_WINDOWPOS_UNDEFINED_MASK|(X))
slouken@5246
   119
#define SDL_WINDOWPOS_UNDEFINED         SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
slouken@5246
   120
#define SDL_WINDOWPOS_ISUNDEFINED(X)    \
slouken@5246
   121
            (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK)
slouken@3407
   122
slouken@1895
   123
/**
slouken@3407
   124
 *  \brief Used to indicate that the window position should be centered.
slouken@1895
   125
 */
slouken@5246
   126
#define SDL_WINDOWPOS_CENTERED_MASK    0x2FFF0000
slouken@5246
   127
#define SDL_WINDOWPOS_CENTERED_DISPLAY(X)  (SDL_WINDOWPOS_CENTERED_MASK|(X))
slouken@5246
   128
#define SDL_WINDOWPOS_CENTERED         SDL_WINDOWPOS_CENTERED_DISPLAY(0)
slouken@5246
   129
#define SDL_WINDOWPOS_ISCENTERED(X)    \
slouken@5246
   130
            (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK)
slouken@1895
   131
slouken@1895
   132
/**
slouken@3407
   133
 *  \brief Event subtype for window events
slouken@1895
   134
 */
slouken@1895
   135
typedef enum
slouken@1895
   136
{
slouken@3407
   137
    SDL_WINDOWEVENT_NONE,           /**< Never used */
slouken@3407
   138
    SDL_WINDOWEVENT_SHOWN,          /**< Window has been shown */
slouken@3407
   139
    SDL_WINDOWEVENT_HIDDEN,         /**< Window has been hidden */
slouken@3407
   140
    SDL_WINDOWEVENT_EXPOSED,        /**< Window has been exposed and should be 
slouken@3407
   141
                                         redrawn */
slouken@3407
   142
    SDL_WINDOWEVENT_MOVED,          /**< Window has been moved to data1, data2 
slouken@3407
   143
                                     */
slouken@5276
   144
    SDL_WINDOWEVENT_RESIZED,        /**< Window has been resized to data1xdata2 */
slouken@5276
   145
    SDL_WINDOWEVENT_SIZE_CHANGED,   /**< The window size has changed, either as a result of an API call or through the system or user changing the window size. */
slouken@3407
   146
    SDL_WINDOWEVENT_MINIMIZED,      /**< Window has been minimized */
slouken@3407
   147
    SDL_WINDOWEVENT_MAXIMIZED,      /**< Window has been maximized */
slouken@3407
   148
    SDL_WINDOWEVENT_RESTORED,       /**< Window has been restored to normal size
slouken@3407
   149
                                         and position */
slouken@3691
   150
    SDL_WINDOWEVENT_ENTER,          /**< Window has gained mouse focus */
slouken@3691
   151
    SDL_WINDOWEVENT_LEAVE,          /**< Window has lost mouse focus */
slouken@3691
   152
    SDL_WINDOWEVENT_FOCUS_GAINED,   /**< Window has gained keyboard focus */
slouken@3691
   153
    SDL_WINDOWEVENT_FOCUS_LOST,     /**< Window has lost keyboard focus */
slouken@3407
   154
    SDL_WINDOWEVENT_CLOSE           /**< The window manager requests that the 
slouken@3407
   155
                                         window be closed */
slouken@1895
   156
} SDL_WindowEventID;
slouken@1895
   157
slouken@1895
   158
/**
slouken@3407
   159
 *  \brief An opaque handle to an OpenGL context.
slouken@1895
   160
 */
slouken@1895
   161
typedef void *SDL_GLContext;
slouken@1895
   162
slouken@1895
   163
/**
slouken@3407
   164
 *  \brief OpenGL configuration attributes
slouken@0
   165
 */
slouken@1895
   166
typedef enum
slouken@1895
   167
{
slouken@0
   168
    SDL_GL_RED_SIZE,
slouken@0
   169
    SDL_GL_GREEN_SIZE,
slouken@0
   170
    SDL_GL_BLUE_SIZE,
slouken@0
   171
    SDL_GL_ALPHA_SIZE,
slouken@0
   172
    SDL_GL_BUFFER_SIZE,
slouken@0
   173
    SDL_GL_DOUBLEBUFFER,
slouken@0
   174
    SDL_GL_DEPTH_SIZE,
slouken@0
   175
    SDL_GL_STENCIL_SIZE,
slouken@0
   176
    SDL_GL_ACCUM_RED_SIZE,
slouken@0
   177
    SDL_GL_ACCUM_GREEN_SIZE,
slouken@0
   178
    SDL_GL_ACCUM_BLUE_SIZE,
slouken@450
   179
    SDL_GL_ACCUM_ALPHA_SIZE,
slouken@655
   180
    SDL_GL_STEREO,
slouken@656
   181
    SDL_GL_MULTISAMPLEBUFFERS,
slouken@1736
   182
    SDL_GL_MULTISAMPLESAMPLES,
hfutrell@2747
   183
    SDL_GL_ACCELERATED_VISUAL,
slouken@3100
   184
    SDL_GL_RETAINED_BACKING,
slouken@3139
   185
    SDL_GL_CONTEXT_MAJOR_VERSION,
slouken@3139
   186
    SDL_GL_CONTEXT_MINOR_VERSION
slouken@0
   187
} SDL_GLattr;
slouken@0
   188
slouken@0
   189
slouken@0
   190
/* Function prototypes */
slouken@0
   191
slouken@1895
   192
/**
slouken@3407
   193
 *  \brief Get the number of video drivers compiled into SDL
slouken@3407
   194
 *  
slouken@3407
   195
 *  \sa SDL_GetVideoDriver()
slouken@0
   196
 */
slouken@1895
   197
extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
slouken@1895
   198
slouken@1895
   199
/**
slouken@3407
   200
 *  \brief Get the name of a built in video driver.
slouken@3407
   201
 *  
slouken@3407
   202
 *  \note The video drivers are presented in the order in which they are
slouken@3407
   203
 *        normally checked during initialization.
slouken@3407
   204
 *  
slouken@3407
   205
 *  \sa SDL_GetNumVideoDrivers()
slouken@1895
   206
 */
slouken@1895
   207
extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index);
slouken@1895
   208
slouken@1895
   209
/**
slouken@3407
   210
 *  \brief Initialize the video subsystem, optionally specifying a video driver.
slouken@3407
   211
 *  
slouken@3407
   212
 *  \param driver_name Initialize a specific driver by name, or NULL for the 
slouken@3407
   213
 *                     default video driver.
slouken@3407
   214
 *  
slouken@3407
   215
 *  \return 0 on success, -1 on error
slouken@3407
   216
 *  
slouken@3407
   217
 *  This function initializes the video subsystem; setting up a connection
slouken@3407
   218
 *  to the window manager, etc, and determines the available display modes
slouken@3407
   219
 *  and pixel formats, but does not initialize a window or graphics mode.
slouken@3407
   220
 *  
slouken@3407
   221
 *  \sa SDL_VideoQuit()
slouken@1895
   222
 */
slouken@5123
   223
extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name);
slouken@1895
   224
slouken@1895
   225
/**
slouken@3407
   226
 *  \brief Shuts down the video subsystem.
slouken@3407
   227
 *  
slouken@3407
   228
 *  This function closes all windows, and restores the original video mode.
slouken@3407
   229
 *  
slouken@3407
   230
 *  \sa SDL_VideoInit()
slouken@1895
   231
 */
slouken@337
   232
extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
slouken@0
   233
slouken@1895
   234
/**
slouken@3407
   235
 *  \brief Returns the name of the currently initialized video driver.
slouken@3407
   236
 *  
slouken@3407
   237
 *  \return The name of the current video driver or NULL if no driver
slouken@3407
   238
 *          has been initialized
slouken@3407
   239
 *  
slouken@3407
   240
 *  \sa SDL_GetNumVideoDrivers()
slouken@3407
   241
 *  \sa SDL_GetVideoDriver()
slouken@0
   242
 */
slouken@1895
   243
extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
slouken@0
   244
slouken@1895
   245
/**
slouken@3407
   246
 *  \brief Returns the number of available video displays.
slouken@3407
   247
 *  
slouken@3528
   248
 *  \sa SDL_GetDisplayBounds()
slouken@0
   249
 */
slouken@1895
   250
extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
slouken@0
   251
slouken@1895
   252
/**
slouken@3528
   253
 *  \brief Get the desktop area represented by a display, with the primary
slouken@3528
   254
 *         display located at 0,0
slouken@3528
   255
 *  
slouken@3528
   256
 *  \return 0 on success, or -1 if the index is out of range.
slouken@3528
   257
 *  
slouken@3528
   258
 *  \sa SDL_GetNumVideoDisplays()
slouken@3528
   259
 */
slouken@5244
   260
extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
slouken@3528
   261
slouken@3528
   262
/**
slouken@5244
   263
 *  \brief Returns the number of available display modes.
slouken@3407
   264
 *  
slouken@3407
   265
 *  \sa SDL_GetDisplayMode()
slouken@0
   266
 */
slouken@5244
   267
extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex);
slouken@0
   268
slouken@1895
   269
/**
slouken@3407
   270
 *  \brief Fill in information about a specific display mode.
slouken@3407
   271
 *  
slouken@3407
   272
 *  \note The display modes are sorted in this priority:
slouken@3407
   273
 *        \li bits per pixel -> more colors to fewer colors
slouken@3407
   274
 *        \li width -> largest to smallest
slouken@3407
   275
 *        \li height -> largest to smallest
slouken@3407
   276
 *        \li refresh rate -> highest to lowest
slouken@3407
   277
 *  
slouken@3407
   278
 *  \sa SDL_GetNumDisplayModes()
slouken@0
   279
 */
slouken@5244
   280
extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex,
slouken@1967
   281
                                               SDL_DisplayMode * mode);
slouken@0
   282
slouken@1895
   283
/**
slouken@5244
   284
 *  \brief Fill in information about the desktop display mode.
slouken@1895
   285
 */
slouken@5244
   286
extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode);
slouken@1895
   287
slouken@1895
   288
/**
slouken@3407
   289
 *  \brief Fill in information about the current display mode.
slouken@1895
   290
 */
slouken@5244
   291
extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode);
slouken@1895
   292
slouken@3400
   293
slouken@1895
   294
/**
slouken@3407
   295
 *  \brief Get the closest match to the requested display mode.
slouken@3407
   296
 *  
slouken@3407
   297
 *  \param mode The desired display mode
slouken@3407
   298
 *  \param closest A pointer to a display mode to be filled in with the closest 
slouken@3407
   299
 *                 match of the available display modes.
slouken@3407
   300
 *  
slouken@3407
   301
 *  \return The passed in value \c closest, or NULL if no matching video mode 
slouken@3407
   302
 *          was available.
slouken@3407
   303
 *  
slouken@3407
   304
 *  The available display modes are scanned, and \c closest is filled in with the
slouken@3407
   305
 *  closest mode matching the requested mode and returned.  The mode format and 
slouken@3407
   306
 *  refresh_rate default to the desktop mode if they are 0.  The modes are 
slouken@3407
   307
 *  scanned with size being first priority, format being second priority, and 
slouken@3407
   308
 *  finally checking the refresh_rate.  If all the available modes are too 
slouken@3407
   309
 *  small, then NULL is returned.
slouken@3407
   310
 *  
slouken@3407
   311
 *  \sa SDL_GetNumDisplayModes()
slouken@3407
   312
 *  \sa SDL_GetDisplayMode()
slouken@1895
   313
 */
slouken@5244
   314
extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
slouken@1895
   315
slouken@1895
   316
/**
slouken@5246
   317
 *  \brief Get the display index associated with a window.
slouken@5246
   318
 *  
slouken@5246
   319
 *  \return the display index of the display containing the center of the
slouken@5246
   320
 *          window, or -1 on error.
slouken@5246
   321
 */
slouken@5246
   322
extern DECLSPEC int SDLCALL SDL_GetWindowDisplay(SDL_Window * window);
slouken@5246
   323
slouken@5246
   324
/**
slouken@5244
   325
 *  \brief Set the display mode used when a fullscreen window is visible.
slouken@5244
   326
 *
slouken@5244
   327
 *  By default the window's dimensions and the desktop format and refresh rate
slouken@5244
   328
 *  are used.
slouken@3407
   329
 *  
slouken@3500
   330
 *  \param mode The mode to use, or NULL for the default mode.
slouken@3407
   331
 *  
slouken@3407
   332
 *  \return 0 on success, or -1 if setting the display mode failed.
slouken@3407
   333
 *  
slouken@3522
   334
 *  \sa SDL_GetWindowDisplayMode()
slouken@3407
   335
 *  \sa SDL_SetWindowFullscreen()
slouken@0
   336
 */
slouken@3685
   337
extern DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window * window,
slouken@3500
   338
                                                     const SDL_DisplayMode
slouken@1895
   339
                                                         * mode);
slouken@0
   340
slouken@1895
   341
/**
slouken@3407
   342
 *  \brief Fill in information about the display mode used when a fullscreen
slouken@5244
   343
 *         window is visible.
slouken@3522
   344
 *
slouken@3522
   345
 *  \sa SDL_SetWindowDisplayMode()
slouken@3522
   346
 *  \sa SDL_SetWindowFullscreen()
slouken@0
   347
 */
slouken@3685
   348
extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
slouken@3500
   349
                                                     SDL_DisplayMode * mode);
slouken@0
   350
slouken@1895
   351
/**
slouken@5154
   352
 *  \brief Get the pixel format associated with the window.
slouken@5154
   353
 */
slouken@5154
   354
extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
slouken@5154
   355
slouken@5154
   356
/**
slouken@3407
   357
 *  \brief Create a window with the specified position, dimensions, and flags.
slouken@3407
   358
 *  
slouken@3407
   359
 *  \param title The title of the window, in UTF-8 encoding.
slouken@3407
   360
 *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or 
slouken@3407
   361
 *               ::SDL_WINDOWPOS_UNDEFINED.
slouken@3407
   362
 *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or 
slouken@3407
   363
 *               ::SDL_WINDOWPOS_UNDEFINED.
slouken@3407
   364
 *  \param w     The width of the window.
slouken@3407
   365
 *  \param h     The height of the window.
slouken@3407
   366
 *  \param flags The flags for the window, a mask of any of the following: 
slouken@3407
   367
 *               ::SDL_WINDOW_FULLSCREEN, ::SDL_WINDOW_OPENGL, 
slouken@3407
   368
 *               ::SDL_WINDOW_SHOWN,      ::SDL_WINDOW_BORDERLESS, 
slouken@3407
   369
 *               ::SDL_WINDOW_RESIZABLE,  ::SDL_WINDOW_MAXIMIZED, 
slouken@3407
   370
 *               ::SDL_WINDOW_MINIMIZED,  ::SDL_WINDOW_INPUT_GRABBED.
slouken@3407
   371
 *  
slouken@3407
   372
 *  \return The id of the window created, or zero if window creation failed.
slouken@3407
   373
 *  
slouken@3407
   374
 *  \sa SDL_DestroyWindow()
slouken@0
   375
 */
slouken@3685
   376
extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
slouken@1895
   377
                                                      int x, int y, int w,
slouken@1895
   378
                                                      int h, Uint32 flags);
slouken@0
   379
slouken@1895
   380
/**
slouken@3493
   381
 *  \brief Create an SDL window from an existing native window.
slouken@3407
   382
 *  
slouken@3407
   383
 *  \param data A pointer to driver-dependent window creation data
slouken@3407
   384
 *  
slouken@3407
   385
 *  \return The id of the window created, or zero if window creation failed.
slouken@3407
   386
 *  
slouken@3407
   387
 *  \sa SDL_DestroyWindow()
slouken@0
   388
 */
slouken@3685
   389
extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowFrom(const void *data);
slouken@3685
   390
slouken@3685
   391
/**
slouken@4883
   392
 *  \brief Get the numeric ID of a window, for logging purposes.
slouken@3685
   393
 */
slouken@3685
   394
extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
slouken@3685
   395
slouken@3685
   396
/**
slouken@3685
   397
 *  \brief Get a window from a stored ID, or NULL if it doesn't exist.
slouken@3685
   398
 */
slouken@3685
   399
extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(Uint32 id);
slouken@1895
   400
slouken@1895
   401
/**
slouken@3407
   402
 *  \brief Get the window flags.
slouken@1895
   403
 */
slouken@3685
   404
extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window * window);
slouken@1895
   405
slouken@1895
   406
/**
slouken@4883
   407
 *  \brief Set the title of a window, in UTF-8 format.
slouken@3407
   408
 *  
slouken@3407
   409
 *  \sa SDL_GetWindowTitle()
slouken@1895
   410
 */
slouken@3685
   411
extern DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window * window,
slouken@1895
   412
                                                const char *title);
slouken@1895
   413
slouken@1895
   414
/**
slouken@4883
   415
 *  \brief Get the title of a window, in UTF-8 format.
slouken@3407
   416
 *  
slouken@3407
   417
 *  \sa SDL_SetWindowTitle()
slouken@1895
   418
 */
slouken@3685
   419
extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window * window);
slouken@1895
   420
slouken@1895
   421
/**
slouken@4887
   422
 *  \brief Set the icon for a window.
slouken@3407
   423
 *  
slouken@4887
   424
 *  \param icon The icon for the window.
slouken@1895
   425
 */
slouken@3685
   426
extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window * window,
slouken@2990
   427
                                               SDL_Surface * icon);
slouken@1895
   428
slouken@1895
   429
/**
slouken@5165
   430
 *  \brief Associate an arbitrary named pointer with a window.
slouken@3407
   431
 *  
slouken@5165
   432
 *  \param window   The window to associate with the pointer.
slouken@5165
   433
 *  \param name     The name of the pointer.
slouken@5165
   434
 *  \param userdata The associated pointer.
slouken@5165
   435
 *
slouken@5165
   436
 *  \return The previous value associated with 'name'
slouken@5165
   437
 *
slouken@5165
   438
 *  \note The name is case-sensitive.
slouken@5165
   439
 *
slouken@3407
   440
 *  \sa SDL_GetWindowData()
slouken@1895
   441
 */
slouken@5165
   442
extern DECLSPEC void* SDLCALL SDL_SetWindowData(SDL_Window * window,
slouken@5165
   443
                                                const char *name,
slouken@5165
   444
                                                void *userdata);
slouken@1895
   445
slouken@1895
   446
/**
slouken@4883
   447
 *  \brief Retrieve the data pointer associated with a window.
slouken@3407
   448
 *  
slouken@5165
   449
 *  \param window   The window to query.
slouken@5165
   450
 *  \param name     The name of the pointer.
slouken@5165
   451
 *
slouken@5165
   452
 *  \return The value associated with 'name'
slouken@5165
   453
 *  
slouken@3407
   454
 *  \sa SDL_SetWindowData()
slouken@1895
   455
 */
slouken@5165
   456
extern DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window * window,
slouken@5165
   457
                                                const char *name);
slouken@1895
   458
slouken@1895
   459
/**
slouken@4883
   460
 *  \brief Set the position of a window.
slouken@3407
   461
 *  
slouken@5165
   462
 *  \param window   The window to reposition.
slouken@3407
   463
 *  \param x        The x coordinate of the window, ::SDL_WINDOWPOS_CENTERED, or
slouken@3407
   464
                    ::SDL_WINDOWPOS_UNDEFINED.
slouken@3407
   465
 *  \param y        The y coordinate of the window, ::SDL_WINDOWPOS_CENTERED, or
slouken@3407
   466
                    ::SDL_WINDOWPOS_UNDEFINED.
slouken@3407
   467
 *  
slouken@3407
   468
 *  \note The window coordinate origin is the upper left of the display.
slouken@3407
   469
 *  
slouken@3407
   470
 *  \sa SDL_GetWindowPosition()
slouken@1895
   471
 */
slouken@3685
   472
extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window * window,
slouken@1895
   473
                                                   int x, int y);
slouken@1895
   474
slouken@1895
   475
/**
slouken@4883
   476
 *  \brief Get the position of a window.
slouken@3407
   477
 *  
slouken@3407
   478
 *  \sa SDL_SetWindowPosition()
slouken@1895
   479
 */
slouken@3685
   480
extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window,
slouken@1895
   481
                                                   int *x, int *y);
slouken@1895
   482
slouken@1895
   483
/**
slouken@4883
   484
 *  \brief Set the size of a window's client area.
slouken@3407
   485
 *  
slouken@3407
   486
 *  \note You can't change the size of a fullscreen window, it automatically
slouken@3407
   487
 *        matches the size of the display mode.
slouken@3407
   488
 *  
slouken@3407
   489
 *  \sa SDL_GetWindowSize()
slouken@1895
   490
 */
slouken@3685
   491
extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
slouken@1895
   492
                                               int h);
slouken@1895
   493
slouken@1895
   494
/**
slouken@4883
   495
 *  \brief Get the size of a window's client area.
slouken@3407
   496
 *  
slouken@3407
   497
 *  \sa SDL_SetWindowSize()
slouken@1895
   498
 */
slouken@3685
   499
extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
slouken@1895
   500
                                               int *h);
slouken@1895
   501
slouken@1895
   502
/**
slouken@4883
   503
 *  \brief Show a window.
slouken@3407
   504
 *  
slouken@3407
   505
 *  \sa SDL_HideWindow()
slouken@1895
   506
 */
slouken@3685
   507
extern DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window * window);
slouken@1895
   508
slouken@1895
   509
/**
slouken@4883
   510
 *  \brief Hide a window.
slouken@3407
   511
 *  
slouken@3407
   512
 *  \sa SDL_ShowWindow()
slouken@1895
   513
 */
slouken@3685
   514
extern DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window * window);
slouken@1895
   515
slouken@1895
   516
/**
slouken@4883
   517
 *  \brief Raise a window above other windows and set the input focus.
slouken@1895
   518
 */
slouken@3685
   519
extern DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window * window);
slouken@1895
   520
slouken@1895
   521
/**
slouken@4883
   522
 *  \brief Make a window as large as possible.
slouken@3407
   523
 *  
slouken@3407
   524
 *  \sa SDL_RestoreWindow()
slouken@1895
   525
 */
slouken@3685
   526
extern DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window * window);
slouken@1895
   527
slouken@1895
   528
/**
slouken@4883
   529
 *  \brief Minimize a window to an iconic representation.
slouken@3407
   530
 *  
slouken@3407
   531
 *  \sa SDL_RestoreWindow()
slouken@1895
   532
 */
slouken@3685
   533
extern DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window * window);
slouken@1895
   534
slouken@1895
   535
/**
slouken@3407
   536
 *  \brief Restore the size and position of a minimized or maximized window.
slouken@3407
   537
 *  
slouken@3407
   538
 *  \sa SDL_MaximizeWindow()
slouken@3407
   539
 *  \sa SDL_MinimizeWindow()
slouken@1895
   540
 */
slouken@3685
   541
extern DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window * window);
slouken@1895
   542
slouken@1895
   543
/**
slouken@4883
   544
 *  \brief Set a window's fullscreen state.
slouken@3407
   545
 *  
slouken@3407
   546
 *  \return 0 on success, or -1 if setting the display mode failed.
slouken@3407
   547
 *  
slouken@3522
   548
 *  \sa SDL_SetWindowDisplayMode()
slouken@3522
   549
 *  \sa SDL_GetWindowDisplayMode()
slouken@1895
   550
 */
slouken@3685
   551
extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
slouken@5246
   552
                                                    SDL_bool fullscreen);
slouken@1895
   553
slouken@1895
   554
/**
slouken@5166
   555
 *  \brief Get an SDL surface associated with the window.
slouken@5166
   556
 *
slouken@5166
   557
 *  \return A surface in the optimal format for the window, or NULL on error.
slouken@5166
   558
 *
slouken@5166
   559
 *  \note You may not combine this with 3D or the rendering API on this window.
slouken@5166
   560
 *
slouken@5166
   561
 *  \sa SDL_UpdateWindowSurface()
slouken@5166
   562
 *  \sa SDL_UpdateWindowSurfaceRects()
slouken@5166
   563
 */
slouken@5166
   564
extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
slouken@5166
   565
slouken@5166
   566
/**
slouken@5166
   567
 *  \brief Copy the window surface to the screen.
slouken@5166
   568
 *
slouken@5166
   569
 *  \return 0 on success, or -1 on error.
slouken@5166
   570
 *
slouken@5166
   571
 *  \sa SDL_GetWindowSurface()
slouken@5166
   572
 *  \sa SDL_UpdateWindowSurfaceRects()
slouken@5166
   573
 */
slouken@5166
   574
extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
slouken@5166
   575
slouken@5166
   576
/**
slouken@5166
   577
 *  \brief Copy a number of rectangles on the window surface to the screen.
slouken@5166
   578
 *
slouken@5166
   579
 *  \return 0 on success, or -1 on error.
slouken@5166
   580
 *
slouken@5166
   581
 *  \sa SDL_GetWindowSurface()
slouken@5166
   582
 *  \sa SDL_UpdateWindowSurfaceRect()
slouken@5166
   583
 */
slouken@5166
   584
extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
slouken@5297
   585
                                                         SDL_Rect * rects,
slouken@5297
   586
                                                         int numrects);
slouken@5166
   587
slouken@5166
   588
/**
slouken@4883
   589
 *  \brief Set a window's input grab mode.
slouken@3407
   590
 *  
slouken@5403
   591
 *  \param grabbed This is SDL_TRUE to grab input, and SDL_FALSE to release input.
slouken@3407
   592
 *  
slouken@3407
   593
 *  \sa SDL_GetWindowGrab()
slouken@1895
   594
 */
slouken@3685
   595
extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
slouken@5403
   596
                                               SDL_bool grabbed);
slouken@1895
   597
slouken@1895
   598
/**
slouken@4883
   599
 *  \brief Get a window's input grab mode.
slouken@3407
   600
 *  
slouken@5403
   601
 *  \return This returns SDL_TRUE if input is grabbed, and SDL_FALSE otherwise.
slouken@3407
   602
 *  
slouken@3407
   603
 *  \sa SDL_SetWindowGrab()
slouken@1895
   604
 */
slouken@5403
   605
extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
slouken@1895
   606
slouken@1895
   607
/**
slouken@5466
   608
 *  \brief Set the brightness (gamma correction) for a window.
slouken@5466
   609
 *  
slouken@5466
   610
 *  \return 0 on success, or -1 if setting the brightness isn't supported.
slouken@5466
   611
 *  
slouken@5466
   612
 *  \sa SDL_GetWindowBrightness()
slouken@5466
   613
 *  \sa SDL_SetWindowGammaRamp()
slouken@5466
   614
 */
slouken@5466
   615
extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float brightness);
slouken@5466
   616
slouken@5466
   617
/**
slouken@5466
   618
 *  \brief Get the brightness (gamma correction) for a window.
slouken@5466
   619
 *  
slouken@5466
   620
 *  \return The last brightness value passed to SDL_SetWindowBrightness()
slouken@5466
   621
 *  
slouken@5466
   622
 *  \sa SDL_SetWindowBrightness()
slouken@5466
   623
 */
slouken@5466
   624
extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
slouken@5466
   625
slouken@5466
   626
/**
slouken@5466
   627
 *  \brief Set the gamma ramp for a window.
slouken@5466
   628
 *  
slouken@5466
   629
 *  \param red The translation table for the red channel, or NULL.
slouken@5466
   630
 *  \param green The translation table for the green channel, or NULL.
slouken@5466
   631
 *  \param blue The translation table for the blue channel, or NULL.
slouken@5466
   632
 *  
slouken@5466
   633
 *  \return 0 on success, or -1 if gamma ramps are unsupported.
slouken@5466
   634
 *  
slouken@5466
   635
 *  Set the gamma translation table for the red, green, and blue channels
slouken@5466
   636
 *  of the video hardware.  Each table is an array of 256 16-bit quantities,
slouken@5466
   637
 *  representing a mapping between the input and output for that channel.
slouken@5466
   638
 *  The input is the index into the array, and the output is the 16-bit
slouken@5466
   639
 *  gamma value at that index, scaled to the output color precision.
slouken@5466
   640
 *
slouken@5466
   641
 *  \sa SDL_SetWindowGammaRamp()
slouken@5466
   642
 */
slouken@5466
   643
extern DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window * window,
slouken@5466
   644
                                                   const Uint16 * red,
slouken@5466
   645
                                                   const Uint16 * green,
slouken@5466
   646
                                                   const Uint16 * blue);
slouken@5466
   647
slouken@5466
   648
/**
slouken@5466
   649
 *  \brief Get the gamma ramp for a window.
slouken@5466
   650
 *  
slouken@5466
   651
 *  \param red   A pointer to a 256 element array of 16-bit quantities to hold 
slouken@5466
   652
 *               the translation table for the red channel, or NULL.
slouken@5466
   653
 *  \param green A pointer to a 256 element array of 16-bit quantities to hold 
slouken@5466
   654
 *               the translation table for the green channel, or NULL.
slouken@5466
   655
 *  \param blue  A pointer to a 256 element array of 16-bit quantities to hold 
slouken@5466
   656
 *               the translation table for the blue channel, or NULL.
slouken@5466
   657
 *   
slouken@5466
   658
 *  \return 0 on success, or -1 if gamma ramps are unsupported.
slouken@5466
   659
 *  
slouken@5466
   660
 *  \sa SDL_SetWindowGammaRamp()
slouken@5466
   661
 */
slouken@5466
   662
extern DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window * window,
slouken@5466
   663
                                                   Uint16 * red,
slouken@5466
   664
                                                   Uint16 * green,
slouken@5466
   665
                                                   Uint16 * blue);
slouken@5466
   666
slouken@5466
   667
/**
slouken@3407
   668
 *  \brief Destroy a window.
slouken@1895
   669
 */
slouken@3685
   670
extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
slouken@1895
   671
slouken@0
   672
slouken@3025
   673
/**
slouken@4875
   674
 *  \brief Returns whether the screensaver is currently enabled (default on).
slouken@3407
   675
 *  
slouken@3407
   676
 *  \sa SDL_EnableScreenSaver()
slouken@3407
   677
 *  \sa SDL_DisableScreenSaver()
slouken@3025
   678
 */
couriersud@3033
   679
extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void);
slouken@3025
   680
slouken@3025
   681
/**
slouken@3407
   682
 *  \brief Allow the screen to be blanked by a screensaver
slouken@3407
   683
 *  
slouken@3407
   684
 *  \sa SDL_IsScreenSaverEnabled()
slouken@3407
   685
 *  \sa SDL_DisableScreenSaver()
slouken@3025
   686
 */
couriersud@3033
   687
extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(void);
slouken@3025
   688
slouken@3025
   689
/**
slouken@3407
   690
 *  \brief Prevent the screen from being blanked by a screensaver
slouken@3407
   691
 *  
slouken@3407
   692
 *  \sa SDL_IsScreenSaverEnabled()
slouken@3407
   693
 *  \sa SDL_EnableScreenSaver()
slouken@3025
   694
 */
couriersud@3033
   695
extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(void);
slouken@3025
   696
slouken@0
   697
slouken@3407
   698
/**
slouken@3407
   699
 *  \name OpenGL support functions
slouken@3407
   700
 */
slouken@3407
   701
/*@{*/
slouken@0
   702
slouken@1895
   703
/**
slouken@3407
   704
 *  \brief Dynamically load an OpenGL library.
slouken@3407
   705
 *  
slouken@3407
   706
 *  \param path The platform dependent OpenGL library name, or NULL to open the 
slouken@3407
   707
 *              default OpenGL library.
slouken@3407
   708
 *  
slouken@3407
   709
 *  \return 0 on success, or -1 if the library couldn't be loaded.
slouken@3407
   710
 *  
slouken@3407
   711
 *  This should be done after initializing the video driver, but before
slouken@3407
   712
 *  creating any OpenGL windows.  If no OpenGL library is loaded, the default
slouken@3407
   713
 *  library will be loaded upon creation of the first OpenGL window.
slouken@3407
   714
 *  
slouken@3407
   715
 *  \note If you do this, you need to retrieve all of the GL functions used in
slouken@3407
   716
 *        your program from the dynamic library using SDL_GL_GetProcAddress().
slouken@3407
   717
 *  
slouken@3407
   718
 *  \sa SDL_GL_GetProcAddress()
slouken@3407
   719
 *  \sa SDL_GL_UnloadLibrary()
slouken@0
   720
 */
slouken@337
   721
extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
slouken@0
   722
slouken@1895
   723
/**
slouken@3407
   724
 *  \brief Get the address of an OpenGL function.
slouken@0
   725
 */
slouken@1895
   726
extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
slouken@0
   727
slouken@1895
   728
/**
slouken@3407
   729
 *  \brief Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
slouken@3407
   730
 *  
slouken@3407
   731
 *  \sa SDL_GL_LoadLibrary()
slouken@3057
   732
 */
slouken@3057
   733
extern DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void);
slouken@3057
   734
slouken@3057
   735
/**
slouken@3407
   736
 *  \brief Return true if an OpenGL extension is supported for the current 
slouken@3407
   737
 *         context.
slouken@1926
   738
 */
slouken@1926
   739
extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char
slouken@1926
   740
                                                           *extension);
slouken@1926
   741
slouken@1926
   742
/**
slouken@3407
   743
 *  \brief Set an OpenGL window attribute before window creation.
slouken@0
   744
 */
slouken@337
   745
extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
slouken@0
   746
slouken@1895
   747
/**
slouken@3407
   748
 *  \brief Get the actual value for an attribute from the current context.
slouken@0
   749
 */
slouken@1936
   750
extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
slouken@0
   751
slouken@1895
   752
/**
slouken@3407
   753
 *  \brief Create an OpenGL context for use with an OpenGL window, and make it 
slouken@3407
   754
 *         current.
slouken@3407
   755
 *  
slouken@3407
   756
 *  \sa SDL_GL_DeleteContext()
slouken@1895
   757
 */
slouken@3685
   758
extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *
slouken@3685
   759
                                                           window);
slouken@1895
   760
slouken@1895
   761
/**
slouken@3407
   762
 *  \brief Set up an OpenGL context for rendering into an OpenGL window.
slouken@3407
   763
 *  
slouken@3407
   764
 *  \note The context must have been created with a compatible window.
slouken@1895
   765
 */
slouken@3685
   766
extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
slouken@1895
   767
                                               SDL_GLContext context);
slouken@1895
   768
slouken@1895
   769
/**
slouken@3407
   770
 *  \brief Set the swap interval for the current OpenGL context.
slouken@3407
   771
 *  
slouken@3407
   772
 *  \param interval 0 for immediate updates, 1 for updates synchronized with the
slouken@3407
   773
 *                  vertical retrace.
slouken@3407
   774
 *  
slouken@3407
   775
 *  \return 0 on success, or -1 if setting the swap interval is not supported.
slouken@3407
   776
 *  
slouken@3407
   777
 *  \sa SDL_GL_GetSwapInterval()
slouken@1895
   778
 */
slouken@1895
   779
extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval);
slouken@1895
   780
slouken@1895
   781
/**
slouken@3407
   782
 *  \brief Get the swap interval for the current OpenGL context.
slouken@3407
   783
 *  
slouken@3407
   784
 *  \return 0 if there is no vertical retrace synchronization, 1 if the buffer 
slouken@3407
   785
 *          swap is synchronized with the vertical retrace, and -1 if getting 
slouken@3407
   786
 *          the swap interval is not supported.
slouken@3407
   787
 *  
slouken@3407
   788
 *  \sa SDL_GL_SetSwapInterval()
slouken@1895
   789
 */
slouken@1895
   790
extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
slouken@1895
   791
slouken@1895
   792
/**
slouken@4883
   793
 * \brief Swap the OpenGL buffers for a window, if double-buffering is 
slouken@3407
   794
 *        supported.
slouken@0
   795
 */
slouken@3685
   796
extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
slouken@0
   797
slouken@1895
   798
/**
slouken@3407
   799
 *  \brief Delete an OpenGL context.
slouken@3407
   800
 *  
slouken@3407
   801
 *  \sa SDL_GL_CreateContext()
slouken@0
   802
 */
slouken@1895
   803
extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
slouken@0
   804
slouken@3407
   805
/*@}*//*OpenGL support functions*/
slouken@3407
   806
slouken@0
   807
slouken@0
   808
/* Ends C function definitions when using C++ */
slouken@0
   809
#ifdef __cplusplus
slouken@1895
   810
/* *INDENT-OFF* */
slouken@0
   811
}
slouken@1895
   812
/* *INDENT-ON* */
slouken@0
   813
#endif
slouken@0
   814
#include "close_code.h"
slouken@0
   815
slouken@0
   816
#endif /* _SDL_video_h */
slouken@1895
   817
slouken@1895
   818
/* vi: set ts=4 sw=4 expandtab: */