include/SDL.h
changeset 0 74212992fb08
child 251 b8688cfdc232
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL.h	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,97 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@devolution.com
    1.24 +*/
    1.25 +
    1.26 +#ifdef SAVE_RCSID
    1.27 +static char rcsid =
    1.28 + "@(#) $Id$";
    1.29 +#endif
    1.30 +
    1.31 +/* Main include header for the SDL library */
    1.32 +
    1.33 +#ifndef _SDL_H
    1.34 +#define _SDL_H
    1.35 +
    1.36 +#include "SDL_main.h"
    1.37 +#include "SDL_types.h"
    1.38 +#include "SDL_getenv.h"
    1.39 +#include "SDL_error.h"
    1.40 +#include "SDL_rwops.h"
    1.41 +#include "SDL_timer.h"
    1.42 +#include "SDL_audio.h"
    1.43 +#include "SDL_cdrom.h"
    1.44 +#include "SDL_joystick.h"
    1.45 +#include "SDL_events.h"
    1.46 +#include "SDL_video.h"
    1.47 +#include "SDL_byteorder.h"
    1.48 +#include "SDL_version.h"
    1.49 +
    1.50 +#include "begin_code.h"
    1.51 +/* Set up for C function definitions, even when using C++ */
    1.52 +#ifdef __cplusplus
    1.53 +extern "C" {
    1.54 +#endif
    1.55 +
    1.56 +/* As of version 0.5, SDL is loaded dynamically into the application */
    1.57 +
    1.58 +/* These are the flags which may be passed to SDL_Init() -- you should
    1.59 +   specify the subsystems which you will be using in your application.
    1.60 +*/
    1.61 +#define	SDL_INIT_TIMER		0x00000001
    1.62 +#define SDL_INIT_AUDIO		0x00000010
    1.63 +#define SDL_INIT_VIDEO		0x00000020
    1.64 +#define SDL_INIT_CDROM		0x00000100
    1.65 +#define SDL_INIT_JOYSTICK	0x00000200
    1.66 +#define SDL_INIT_NOPARACHUTE	0x00100000	/* Don't catch fatal signals */
    1.67 +#define SDL_INIT_EVENTTHREAD	0x01000000	/* Not supported on all OS's */
    1.68 +#define SDL_INIT_EVERYTHING	0x0000FFFF
    1.69 +
    1.70 +/* This function loads the SDL dynamically linked library and initializes 
    1.71 + * the subsystems specified by 'flags' (and those satisfying dependencies)
    1.72 + * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
    1.73 + * signal handlers for some commonly ignored fatal signals (like SIGSEGV)
    1.74 + */
    1.75 +extern DECLSPEC int SDL_Init(Uint32 flags);
    1.76 +
    1.77 +/* This function initializes specific SDL subsystems */
    1.78 +extern DECLSPEC int SDL_InitSubSystem(Uint32 flags);
    1.79 +
    1.80 +/* This function cleans up specific SDL subsystems */
    1.81 +extern DECLSPEC void SDL_QuitSubSystem(Uint32 flags);
    1.82 +
    1.83 +/* This function returns mask of the specified subsystems which have
    1.84 +   been initialized.
    1.85 +   If 'flags' is 0, it returns a mask of all initialized subsystems.
    1.86 +*/
    1.87 +extern DECLSPEC Uint32 SDL_WasInit(Uint32 flags);
    1.88 +
    1.89 +/* This function cleans up all initialized subsystems and unloads the
    1.90 + * dynamically linked library.  You should call it upon all exit conditions.
    1.91 + */
    1.92 +extern DECLSPEC void SDL_Quit(void);
    1.93 +
    1.94 +/* Ends C function definitions when using C++ */
    1.95 +#ifdef __cplusplus
    1.96 +}
    1.97 +#endif
    1.98 +#include "close_code.h"
    1.99 +
   1.100 +#endif /* _SDL_H */