23 #if defined(__WIN32__) 38 #if !SDL_TIMERS_DISABLED 44 #if SDL_VIDEO_DRIVER_WINDOWS 45 extern int SDL_HelperWindowCreate(
void);
46 extern int SDL_HelperWindowDestroy(
void);
51 #ifdef SDL_MAIN_NEEDED 111 SDL_SetError(
"Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?");
118 #if SDL_VIDEO_DRIVER_WINDOWS 120 if (SDL_HelperWindowCreate() < 0) {
126 #if !SDL_TIMERS_DISABLED 142 #if !SDL_EVENTS_DISABLED 151 return SDL_SetError(
"SDL not built with events support");
157 #if !SDL_TIMERS_DISABLED 165 return SDL_SetError(
"SDL not built with timer support");
171 #if !SDL_VIDEO_DISABLED 179 return SDL_SetError(
"SDL not built with video support");
185 #if !SDL_AUDIO_DISABLED 193 return SDL_SetError(
"SDL not built with audio support");
199 #if !SDL_JOYSTICK_DISABLED 207 return SDL_SetError(
"SDL not built with joystick support");
211 if ((flags & SDL_INIT_GAMECONTROLLER)){
212 #if !SDL_JOYSTICK_DISABLED 220 return SDL_SetError(
"SDL not built with joystick support");
226 #if !SDL_HAPTIC_DISABLED 234 return SDL_SetError(
"SDL not built with haptic (force feedback) support");
251 #if !SDL_JOYSTICK_DISABLED 273 #if !SDL_HAPTIC_DISABLED 282 #if !SDL_AUDIO_DISABLED 291 #if !SDL_VIDEO_DISABLED 303 #if !SDL_TIMERS_DISABLED 312 #if !SDL_EVENTS_DISABLED 337 for (i = 0; i < num_subsystems; ++
i) {
339 initialized |= (1 <<
i);
354 #if SDL_VIDEO_DRIVER_WINDOWS 355 SDL_HelperWindowDestroy();
359 #if !SDL_TIMERS_DISABLED 423 return "MacOS Classic";
437 return "QNX Neutrino";
449 return "PlayStation Portable";
451 return "Unknown (see SDL_platform.h)";
455 #if defined(__WIN32__) 457 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL)) 461 _DllMainCRTStartup(HANDLE hModule,
462 DWORD ul_reason_for_call, LPVOID lpReserved)
464 switch (ul_reason_for_call) {
465 case DLL_PROCESS_ATTACH:
466 case DLL_THREAD_ATTACH:
467 case DLL_THREAD_DETACH:
468 case DLL_PROCESS_DETACH:
const char * SDL_GetRevision(void)
Get the code revision of SDL that is linked against your program.
static SDL_bool SDL_MainIsReady
void SDL_HapticQuit(void)
uint32_t Uint32
An unsigned 32-bit integer type.
#define SDL_LogResetPriorities
#define SDL_INIT_JOYSTICK
static Uint8 SDL_SubsystemRefCount[32]
void SDL_QuitSubSystem(Uint32 flags)
int SDL_Init(Uint32 flags)
int SDL_JoystickInit(void)
int SDL_StartEventLoop(void)
SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
static SDL_bool SDL_bInMainQuit
Uint32 SDL_WasInit(Uint32 flags)
#define SDL_REVISION_NUMBER
#define SDL_VERSION(x)
Macro to determine SDL version program was compiled against.
void SDL_AssertionsQuit(void)
void SDL_GetVersion(SDL_version *ver)
Get the version of SDL that is linked against your program.
Information the version of SDL in use.
static void SDL_PrivateSubsystemRefCountIncr(Uint32 subsystem)
void SDL_GameControllerQuit(void)
uint8_t Uint8
An unsigned 8-bit integer type.
#define SDL_INIT_EVERYTHING
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
#define SDL_assert(condition)
const char * SDL_GetPlatform()
Gets the name of the platform.
static SDL_bool SDL_PrivateShouldInitSubsystem(Uint32 subsystem)
static void SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
static SDL_bool SDL_PrivateShouldQuitSubsystem(Uint32 subsystem)
#define SDL_arraysize(array)
#define SDL_INIT_GAMECONTROLLER
void SDL_JoystickQuit(void)
int SDL_InitSubSystem(Uint32 flags)
int SDL_GameControllerInit(void)
int SDL_GetRevisionNumber(void)
Get the revision number of SDL that is linked against your program.
void SDL_SetMainReady(void)
void SDL_StopEventLoop(void)