comparison include/SDL_main.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 3c45c578d480
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
48 } 48 }
49 */ 49 */
50 #define main SDL_main 50 #define main SDL_main
51 51
52 /* The prototype for the application's main() function */ 52 /* The prototype for the application's main() function */
53 extern C_LINKAGE int SDL_main(int argc, char *argv[]); 53 extern C_LINKAGE int SDL_main (int argc, char *argv[]);
54 54
55 55
56 /* From the SDL library code -- needed for registering the app on Win32 */ 56 /* From the SDL library code -- needed for registering the app on Win32 */
57 #ifdef __WIN32__ 57 #ifdef __WIN32__
58 58
59 #include "begin_code.h" 59 #include "begin_code.h"
60 #ifdef __cplusplus 60 #ifdef __cplusplus
61 /* *INDENT-OFF* */
61 extern "C" { 62 extern "C" {
63 /* *INDENT-ON* */
62 #endif 64 #endif
63 65
64 /* This should be called from your WinMain() function, if any */ 66 /* This should be called from your WinMain() function, if any */
65 extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst); 67 extern DECLSPEC void SDLCALL SDL_SetModuleHandle (void *hInst);
66 /* This can also be called, but is no longer necessary */ 68 /* This can also be called, but is no longer necessary */
67 extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); 69 extern DECLSPEC int SDLCALL SDL_RegisterApp (char *name, Uint32 style,
70 void *hInst);
68 /* This can also be called, but is no longer necessary (SDL_Quit calls it) */ 71 /* This can also be called, but is no longer necessary (SDL_Quit calls it) */
69 extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); 72 extern DECLSPEC void SDLCALL SDL_UnregisterApp (void);
70 #ifdef __cplusplus 73 #ifdef __cplusplus
74 /* *INDENT-OFF* */
71 } 75 }
76 /* *INDENT-ON* */
72 #endif 77 #endif
73 #include "close_code.h" 78 #include "close_code.h"
74 #endif 79 #endif
75 80
76 /* From the SDL library code -- needed for registering QuickDraw on MacOS */ 81 /* From the SDL library code -- needed for registering QuickDraw on MacOS */
77 #if defined(__MACOS__) 82 #if defined(__MACOS__)
78 83
79 #include "begin_code.h" 84 #include "begin_code.h"
80 #ifdef __cplusplus 85 #ifdef __cplusplus
86 /* *INDENT-OFF* */
81 extern "C" { 87 extern "C" {
88 /* *INDENT-ON* */
82 #endif 89 #endif
83 90
84 /* Forward declaration so we don't need to include QuickDraw.h */ 91 /* Forward declaration so we don't need to include QuickDraw.h */
85 struct QDGlobals; 92 struct QDGlobals;
86 93
87 /* This should be called from your main() function, if any */ 94 /* This should be called from your main() function, if any */
88 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd); 95 extern DECLSPEC void SDLCALL SDL_InitQuickDraw (struct QDGlobals *the_qd);
89 96
90 #ifdef __cplusplus 97 #ifdef __cplusplus
98 /* *INDENT-OFF* */
91 } 99 }
100 /* *INDENT-ON* */
92 #endif 101 #endif
93 #include "close_code.h" 102 #include "close_code.h"
94 #endif 103 #endif
95 104
96 #endif /* Need to redefine main()? */ 105 #endif /* Need to redefine main()? */
97 106
98 #endif /* _SDL_main_h */ 107 #endif /* _SDL_main_h */
108
109 /* vi: set ts=4 sw=4 expandtab: */