misc/winutils/include/SDL.h
author nemo
Sun, 08 Jul 2012 10:35:40 -0400
changeset 7360 d833d1010710
parent 6560 ca07e6be08d0
child 7809 7d4fb2f35f4f
permissions -rw-r--r--
Intended to help on bottom border maps or "red" maps - don't assume erasure if there is indestructible land below the hog
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     1
/*
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     3
    Copyright (C) 1997-2009 Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     4
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     9
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    13
    Lesser General Public License for more details.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    14
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    18
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    19
    Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    20
    slouken@libsdl.org
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    21
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    22
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    23
/** @file SDL.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    24
 *  Main include header for the SDL library
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    25
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    26
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    27
#ifndef _SDL_H
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    28
#define _SDL_H
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    29
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    30
#include "SDL_main.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    31
#include "SDL_stdinc.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    32
#include "SDL_audio.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    33
#include "SDL_cdrom.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    34
#include "SDL_cpuinfo.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    35
#include "SDL_endian.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    36
#include "SDL_error.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    37
#include "SDL_events.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    38
#include "SDL_loadso.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    39
#include "SDL_mutex.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    40
#include "SDL_rwops.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    41
#include "SDL_thread.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    42
#include "SDL_timer.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    43
#include "SDL_video.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    44
#include "SDL_version.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    45
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    46
#include "begin_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    47
/* Set up for C function definitions, even when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    48
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    49
extern "C" {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    50
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    51
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    52
/** @file SDL.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    53
 *  @note As of version 0.5, SDL is loaded dynamically into the application
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    54
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    55
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    56
/** @name SDL_INIT Flags
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    57
 *  These are the flags which may be passed to SDL_Init() -- you should
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    58
 *  specify the subsystems which you will be using in your application.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    59
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    60
/*@{*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    61
#define	SDL_INIT_TIMER		0x00000001
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    62
#define SDL_INIT_AUDIO		0x00000010
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    63
#define SDL_INIT_VIDEO		0x00000020
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    64
#define SDL_INIT_CDROM		0x00000100
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    65
#define SDL_INIT_JOYSTICK	0x00000200
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    66
#define SDL_INIT_NOPARACHUTE	0x00100000	/**< Don't catch fatal signals */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    67
#define SDL_INIT_EVENTTHREAD	0x01000000	/**< Not supported on all OS's */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    68
#define SDL_INIT_EVERYTHING	0x0000FFFF
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    69
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    70
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    71
/** This function loads the SDL dynamically linked library and initializes 
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    72
 *  the subsystems specified by 'flags' (and those satisfying dependencies)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    73
 *  Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    74
 *  signal handlers for some commonly ignored fatal signals (like SIGSEGV)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    75
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    76
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    77
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    78
/** This function initializes specific SDL subsystems */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    79
extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    80
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    81
/** This function cleans up specific SDL subsystems */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    82
extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    83
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    84
/** This function returns mask of the specified subsystems which have
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    85
 *  been initialized.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    86
 *  If 'flags' is 0, it returns a mask of all initialized subsystems.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    87
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    88
extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    89
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    90
/** This function cleans up all initialized subsystems and unloads the
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    91
 *  dynamically linked library.  You should call it upon all exit conditions.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    92
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    93
extern DECLSPEC void SDLCALL SDL_Quit(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    94
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    95
/* Ends C function definitions when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    96
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    97
}
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    98
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    99
#include "close_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   100
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   101
#endif /* _SDL_H */