include/SDL_compat.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 29 May 2006 05:08:33 +0000
branchSDL-1.3
changeset 1669 9857d21967bb
parent 1668 4da1ee79c9af
child 1670 eef792d31de8
permissions -rw-r--r--
The test programs compile again.
The dummy video driver is partially functional now.
slouken@1662
     1
/*
slouken@1662
     2
    SDL - Simple DirectMedia Layer
slouken@1662
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1662
     4
slouken@1662
     5
    This library is free software; you can redistribute it and/or
slouken@1662
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1662
     7
    License as published by the Free Software Foundation; either
slouken@1662
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1662
     9
slouken@1662
    10
    This library is distributed in the hope that it will be useful,
slouken@1662
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1662
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1662
    13
    Lesser General Public License for more details.
slouken@1662
    14
slouken@1662
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1662
    16
    License along with this library; if not, write to the Free Software
slouken@1662
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1662
    18
slouken@1662
    19
    Sam Lantinga
slouken@1662
    20
    slouken@libsdl.org
slouken@1662
    21
*/
slouken@1662
    22
slouken@1662
    23
/* This file contains functions for backwards compatibility with SDL 1.2 */
slouken@1662
    24
slouken@1662
    25
#ifndef _SDL_compat_h
slouken@1662
    26
#define _SDL_compat_h
slouken@1662
    27
slouken@1669
    28
#include "SDL_video.h"
slouken@1662
    29
#include "SDL_syswm.h"
slouken@1662
    30
slouken@1662
    31
#include "begin_code.h"
slouken@1662
    32
/* Set up for C function definitions, even when using C++ */
slouken@1662
    33
#ifdef __cplusplus
slouken@1667
    34
/* *INDENT-OFF* */
slouken@1667
    35
extern "C" {
slouken@1667
    36
/* *INDENT-ON* */
slouken@1662
    37
#endif
slouken@1662
    38
slouken@1667
    39
#define SDL_SWSURFACE	0x00000000
slouken@1667
    40
#define SDL_HWSURFACE	0x00000001
slouken@1667
    41
#define SDL_ASYNCBLIT	0x00000004
slouken@1667
    42
#define SDL_ANYFORMAT	0x10000000
slouken@1667
    43
#define SDL_HWPALETTE	0x20000000
slouken@1667
    44
#define SDL_DOUBLEBUF	0x40000000
slouken@1667
    45
#define SDL_FULLSCREEN	0x80000000
slouken@1667
    46
#define SDL_OPENGL      0x00000002
slouken@1667
    47
#define SDL_INTERNALOPENGL 0x00000008
slouken@1667
    48
#define SDL_RESIZABLE	0x00000010
slouken@1667
    49
#define SDL_NOFRAME	0x00000020
slouken@1667
    50
#define SDL_HWACCEL	0x00000100
slouken@1667
    51
#define SDL_SRCCOLORKEY	0x00001000
slouken@1667
    52
#define SDL_RLEACCELOK	0x00002000
slouken@1667
    53
#define SDL_RLEACCEL	0x00004000
slouken@1667
    54
#define SDL_SRCALPHA	0x00010000
slouken@1662
    55
slouken@1667
    56
#define SDL_APPMOUSEFOCUS	0x01
slouken@1667
    57
#define SDL_APPINPUTFOCUS	0x02
slouken@1667
    58
#define SDL_APPACTIVE		0x04
slouken@1662
    59
slouken@1667
    60
#define SDL_LOGPAL 0x01
slouken@1667
    61
#define SDL_PHYSPAL 0x02
slouken@1662
    62
slouken@1669
    63
#define SDL_ACTIVEEVENT	SDL_EVENT_RESERVED1
slouken@1669
    64
#define SDL_VIDEORESIZE	SDL_EVENT_RESERVED2
slouken@1669
    65
#define SDL_VIDEOEXPOSE	SDL_EVENT_RESERVED3
slouken@1669
    66
slouken@1667
    67
typedef enum
slouken@1667
    68
{
slouken@1667
    69
    SDL_GRAB_QUERY = -1,
slouken@1667
    70
    SDL_GRAB_OFF = 0,
slouken@1667
    71
    SDL_GRAB_ON = 1
slouken@1667
    72
} SDL_GrabMode;
slouken@1667
    73
slouken@1668
    74
extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
slouken@1668
    75
extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
slouken@1668
    76
extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
slouken@1668
    77
extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp,
slouken@1668
    78
                                            Uint32 flags);
slouken@1668
    79
extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
slouken@1668
    80
                                                 Uint32 flags);
slouken@1668
    81
extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
slouken@1668
    82
                                                      int bpp, Uint32 flags);
slouken@1668
    83
extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
slouken@1668
    84
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
slouken@1668
    85
                                               const char *icon);
slouken@1668
    86
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);
slouken@1668
    87
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
slouken@1668
    88
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
slouken@1668
    89
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
slouken@1668
    90
extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
slouken@1668
    91
extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
slouken@1668
    92
extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, int flags,
slouken@1668
    93
                                           SDL_Color * colors,
slouken@1668
    94
                                           int firstcolor, int ncolors);
slouken@1668
    95
extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo * info);
slouken@1667
    96
slouken@1667
    97
/* Ends C function definitions when using C++ */
slouken@1667
    98
#ifdef __cplusplus
slouken@1667
    99
/* *INDENT-OFF* */
slouken@1667
   100
}
slouken@1667
   101
/* *INDENT-ON* */
slouken@1667
   102
#endif
slouken@1667
   103
#include "close_code.h"
slouken@1667
   104
slouken@1667
   105
#endif /* _SDL_compat_h */