include/SDL.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2013 19:57:11 -0400
changeset 7667 be1cc6f55840
parent 7655 8f71b590aff6
child 7677 871d43c6968a
permissions -rw-r--r--
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     1
/*
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
     2
  Simple DirectMedia Layer
6885
700f1b25f77f Happy New Year!
Sam Lantinga <slouken@libsdl.org>
parents: 6878
diff changeset
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     4
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
     5
  This software is provided 'as-is', without any express or implied
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
     7
  arising from the use of this software.
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     8
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    11
  freely, subject to the following restrictions:
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    12
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    14
     claim that you wrote the original software. If you use this software
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    16
     appreciated but is not required.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    18
     misrepresented as being the original software.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5347
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    20
*/
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    21
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
    22
/**
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    23
 *  \file SDL.h
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    24
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    25
 *  Main include header for the SDL library
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
    26
 */
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
    27
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    28
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    29
 *  \mainpage Simple DirectMedia Layer (SDL)
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    30
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    31
 *  http://www.libsdl.org/
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    32
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    33
 *  \section intro_sec Introduction
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    34
 *
7655
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    35
 *  Simple DirectMedia Layer is a cross-platform development library designed
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    36
 *  to provide low level access to audio, keyboard, mouse, joystick, and
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    37
 *  graphics hardware via OpenGL and Direct3D. It is used by video playback
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    38
 *  software, emulators, and popular games including Valve's award winning
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    39
 *  catalog and many Humble Bundle games.
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    40
 *
7655
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    41
 *  SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    42
 *  Support for other platforms may be found in the source code.
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    43
 *
7655
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    44
 *  SDL is written in C, works natively with C++, and there are bindings 
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    45
 *  available for several other languages, including C# and Python.
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    46
 *
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    47
 *  This library is distributed under the zlib license, which can be found
8f71b590aff6 Replaced introduction in header file with more recent version from README.txt.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7370
diff changeset
    48
 *  in the file "COPYING.txt".
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    49
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    50
 *  The best way to learn how to use SDL is to check out the header files in
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    51
 *  the "include" subdirectory and the programs in the "test" subdirectory.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    52
 *  The header files and test programs are well commented and always up to date.
6878
30579e86ac24 Updated documentation with info about the wiki
Sam Lantinga <slouken@libsdl.org>
parents: 6690
diff changeset
    53
 *  More documentation and FAQs are available online at:
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    54
 *      http://wiki.libsdl.org/
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    55
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    56
 *  If you need help with the library, or just want to discuss SDL related
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    57
 *  issues, you can join the developers mailing list:
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    58
 *      http://www.libsdl.org/mailing-list.php
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    59
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
    60
 *  Enjoy!
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
    61
 *      Sam Lantinga                (slouken@libsdl.org)
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
    62
 */
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    63
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    64
#ifndef _SDL_H
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    65
#define _SDL_H
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    66
1423
4ed717f9e509 Updated for Visual Studio Express 2005
Sam Lantinga <slouken@libsdl.org>
parents: 1358
diff changeset
    67
#include "SDL_main.h"
1353
7ba544e2888d Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents: 1335
diff changeset
    68
#include "SDL_stdinc.h"
5347
10609833cd43 Add assertions to the default API set.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    69
#include "SDL_assert.h"
5017
a9a3b9852a4a SDL_atomic.h is safe to include in the main header now.
Sam Lantinga <slouken@libsdl.org>
parents: 5006
diff changeset
    70
#include "SDL_atomic.h"
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    71
#include "SDL_audio.h"
4493
f0b7c8d169f5 First pass at clipboard API, still very much in progress
Sam Lantinga <slouken@libsdl.org>
parents: 4453
diff changeset
    72
#include "SDL_clipboard.h"
1358
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    73
#include "SDL_cpuinfo.h"
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    74
#include "SDL_endian.h"
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    75
#include "SDL_error.h"
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    76
#include "SDL_events.h"
7667
be1cc6f55840 Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ryan C. Gordon <icculus@icculus.org>
parents: 7655
diff changeset
    77
#include "SDL_filesystem.h"
6918
6f4bf9b784f2 Added SDL_haptic.h to SDL.h.
Ryan C. Gordon <icculus@icculus.org>
parents: 6885
diff changeset
    78
#include "SDL_joystick.h"
6690
9548c8a58103 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Sam Lantinga <slouken@libsdl.org>
parents: 6602
diff changeset
    79
#include "SDL_gamecontroller.h"
6918
6f4bf9b784f2 Added SDL_haptic.h to SDL.h.
Ryan C. Gordon <icculus@icculus.org>
parents: 6885
diff changeset
    80
#include "SDL_haptic.h"
5189
6f6a9340fb93 Added a hint system to allow configuration hints to be specified by the application.
Sam Lantinga <slouken@libsdl.org>
parents: 5150
diff changeset
    81
#include "SDL_hints.h"
1358
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    82
#include "SDL_loadso.h"
5221
2ee8112bfc6b Added a simple log message API
Sam Lantinga <slouken@libsdl.org>
parents: 5189
diff changeset
    83
#include "SDL_log.h"
6602
533131e24aeb Added API for simple messagebox, courtesy of Mike Sartain
Sam Lantinga <slouken@libsdl.org>
parents: 6342
diff changeset
    84
#include "SDL_messagebox.h"
1358
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    85
#include "SDL_mutex.h"
3170
b7a48f533966 Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 2859
diff changeset
    86
#include "SDL_power.h"
5145
2f44e6969a59 Split the rendering API out into a separate header file.
Sam Lantinga <slouken@libsdl.org>
parents: 5123
diff changeset
    87
#include "SDL_render.h"
1358
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    88
#include "SDL_rwops.h"
6342
ac83b73f0edd Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback()
Sam Lantinga <slouken@libsdl.org>
parents: 6256
diff changeset
    89
#include "SDL_system.h"
1358
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    90
#include "SDL_thread.h"
c71e05b4dc2e More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org>
parents: 1356
diff changeset
    91
#include "SDL_timer.h"
3647
c5925cd41955 First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents: 3407
diff changeset
    92
#include "SDL_version.h"
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    93
#include "SDL_video.h"
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    94
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    95
#include "begin_code.h"
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    96
/* Set up for C function definitions, even when using C++ */
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    97
#ifdef __cplusplus
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    98
extern "C" {
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    99
#endif
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   100
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   101
/* As of version 0.5, SDL is loaded dynamically into the application */
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   102
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   103
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   104
 *  \name SDL_INIT_*
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
   105
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   106
 *  These are the flags which may be passed to SDL_Init().  You should
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   107
 *  specify the subsystems which you will be using in your application.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   108
 */
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   109
/*@{*/
2713
0906692aa6a4 Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2062
diff changeset
   110
#define SDL_INIT_TIMER          0x00000001
0906692aa6a4 Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2062
diff changeset
   111
#define SDL_INIT_AUDIO          0x00000010
7360
b86947ea2749 Make it possible to use SDL events separately from the video subsystem.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   112
#define SDL_INIT_VIDEO          0x00000020  /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
b86947ea2749 Make it possible to use SDL events separately from the video subsystem.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   113
#define SDL_INIT_JOYSTICK       0x00000200  /**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */
2713
0906692aa6a4 Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2062
diff changeset
   114
#define SDL_INIT_HAPTIC         0x00001000
7370
9af77b0c7c93 Corrected name of constant in header file comment.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7360
diff changeset
   115
#define SDL_INIT_GAMECONTROLLER 0x00002000  /**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */
7360
b86947ea2749 Make it possible to use SDL events separately from the video subsystem.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   116
#define SDL_INIT_EVENTS         0x00004000
b86947ea2749 Make it possible to use SDL events separately from the video subsystem.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   117
#define SDL_INIT_NOPARACHUTE    0x00100000  /**< Don't catch fatal signals */
6981
8925ae6ab499 Changed SDL_INIT_EVERYTHING to only request currently-known subsystems.
Ryan C. Gordon <icculus@icculus.org>
parents: 6918
diff changeset
   118
#define SDL_INIT_EVERYTHING ( \
7360
b86947ea2749 Make it possible to use SDL events separately from the video subsystem.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   119
                SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
6981
8925ae6ab499 Changed SDL_INIT_EVERYTHING to only request currently-known subsystems.
Ryan C. Gordon <icculus@icculus.org>
parents: 6918
diff changeset
   120
                SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
8925ae6ab499 Changed SDL_INIT_EVERYTHING to only request currently-known subsystems.
Ryan C. Gordon <icculus@icculus.org>
parents: 6918
diff changeset
   121
            )
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   122
/*@}*/
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   123
3348
c02af6912b3c Eric Wing to Sam
Sam Lantinga <slouken@libsdl.org>
parents: 3283
diff changeset
   124
/**
4863
cfe6336d7e60 Fixed obsolete documentation
Sam Lantinga <slouken@libsdl.org>
parents: 4627
diff changeset
   125
 *  This function initializes  the subsystems specified by \c flags
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   126
 *  Unless the ::SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   127
 *  signal handlers for some commonly ignored fatal signals (like SIGSEGV).
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   128
 */
337
9154ec9ca3d2 Explicitly specify the SDL API calling convention (C by default)
Sam Lantinga <slouken@libsdl.org>
parents: 297
diff changeset
   129
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   130
3348
c02af6912b3c Eric Wing to Sam
Sam Lantinga <slouken@libsdl.org>
parents: 3283
diff changeset
   131
/**
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   132
 *  This function initializes specific SDL subsystems
3348
c02af6912b3c Eric Wing to Sam
Sam Lantinga <slouken@libsdl.org>
parents: 3283
diff changeset
   133
 */
337
9154ec9ca3d2 Explicitly specify the SDL API calling convention (C by default)
Sam Lantinga <slouken@libsdl.org>
parents: 297
diff changeset
   134
extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   135
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   136
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   137
 *  This function cleans up specific SDL subsystems
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   138
 */
337
9154ec9ca3d2 Explicitly specify the SDL API calling convention (C by default)
Sam Lantinga <slouken@libsdl.org>
parents: 297
diff changeset
   139
extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   140
3348
c02af6912b3c Eric Wing to Sam
Sam Lantinga <slouken@libsdl.org>
parents: 3283
diff changeset
   141
/**
4627
3b5f4b3a69e1 Documentation updates
Sam Lantinga <slouken@libsdl.org>
parents: 4493
diff changeset
   142
 *  This function returns a mask of the specified subsystems which have
3b5f4b3a69e1 Documentation updates
Sam Lantinga <slouken@libsdl.org>
parents: 4493
diff changeset
   143
 *  previously been initialized.
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7022
diff changeset
   144
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   145
 *  If \c flags is 0, it returns a mask of all initialized subsystems.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3348
diff changeset
   146
 */
337
9154ec9ca3d2 Explicitly specify the SDL API calling convention (C by default)
Sam Lantinga <slouken@libsdl.org>
parents: 297
diff changeset
   147
extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   148
3348
c02af6912b3c Eric Wing to Sam
Sam Lantinga <slouken@libsdl.org>
parents: 3283
diff changeset
   149
/**
4627
3b5f4b3a69e1 Documentation updates
Sam Lantinga <slouken@libsdl.org>
parents: 4493
diff changeset
   150
 *  This function cleans up all initialized subsystems. You should
3b5f4b3a69e1 Documentation updates
Sam Lantinga <slouken@libsdl.org>
parents: 4493
diff changeset
   151
 *  call it upon all exit conditions.
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   152
 */
337
9154ec9ca3d2 Explicitly specify the SDL API calling convention (C by default)
Sam Lantinga <slouken@libsdl.org>
parents: 297
diff changeset
   153
extern DECLSPEC void SDLCALL SDL_Quit(void);
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   154
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   155
/* Ends C function definitions when using C++ */
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   156
#ifdef __cplusplus
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   157
}
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   158
#endif
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   159
#include "close_code.h"
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   160
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   161
#endif /* _SDL_H */
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
   162
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1423
diff changeset
   163
/* vi: set ts=4 sw=4 expandtab: */