39#if !SDL_TIMERS_DISABLED
42#if SDL_VIDEO_DRIVER_WINDOWS
43extern int SDL_HelperWindowCreate(
void);
44extern int SDL_HelperWindowDestroy(
void);
109 SDL_SetError(
"Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?");
126#if SDL_VIDEO_DRIVER_WINDOWS
128 if (SDL_HelperWindowCreate() < 0) {
134#if !SDL_TIMERS_DISABLED
140#if !SDL_EVENTS_DISABLED
148 return SDL_SetError(
"SDL not built with events support");
154#if !SDL_TIMERS_DISABLED
162 return SDL_SetError(
"SDL not built with timer support");
168#if !SDL_VIDEO_DISABLED
176 return SDL_SetError(
"SDL not built with video support");
182#if !SDL_AUDIO_DISABLED
190 return SDL_SetError(
"SDL not built with audio support");
196#if !SDL_JOYSTICK_DISABLED
204 return SDL_SetError(
"SDL not built with joystick support");
209#if !SDL_JOYSTICK_DISABLED
217 return SDL_SetError(
"SDL not built with joystick support");
223#if !SDL_HAPTIC_DISABLED
231 return SDL_SetError(
"SDL not built with haptic (force feedback) support");
237#if !SDL_SENSOR_DISABLED
245 return SDL_SetError(
"SDL not built with sensor support");
262#if !SDL_SENSOR_DISABLED
271#if !SDL_JOYSTICK_DISABLED
293#if !SDL_HAPTIC_DISABLED
302#if !SDL_AUDIO_DISABLED
311#if !SDL_VIDEO_DISABLED
323#if !SDL_TIMERS_DISABLED
332#if !SDL_EVENTS_DISABLED
362 for (
i = 0;
i < num_subsystems; ++
i) {
364 initialized |= (1 <<
i);
379#if SDL_VIDEO_DRIVER_WINDOWS
380 SDL_HelperWindowDestroy();
384#if !SDL_TIMERS_DISABLED
448 return "MacOS Classic";
462 return "QNX Neutrino";
476 return "PlayStation Portable";
478 return "Unknown (see SDL_platform.h)";
496#if defined(__WIN32__)
498#if (!defined(HAVE_LIBC) || defined(__WATCOMC__)) && !defined(SDL_STATIC_LIB)
502_DllMainCRTStartup(HANDLE hModule,
503 DWORD ul_reason_for_call, LPVOID lpReserved)
505 switch (ul_reason_for_call) {
506 case DLL_PROCESS_ATTACH:
507 case DLL_THREAD_ATTACH:
508 case DLL_THREAD_DETACH:
509 case DLL_PROCESS_DETACH:
Uint32 SDL_WasInit(Uint32 flags)
int SDL_GetRevisionNumber(void)
Get the revision number of SDL that is linked against your program.
void SDL_SetMainReady(void)
static Uint8 SDL_SubsystemRefCount[32]
int SDL_InitSubSystem(Uint32 flags)
static SDL_bool SDL_PrivateShouldQuitSubsystem(Uint32 subsystem)
static void SDL_PrivateSubsystemRefCountIncr(Uint32 subsystem)
void SDL_QuitSubSystem(Uint32 flags)
static SDL_bool SDL_MainIsReady
static SDL_bool SDL_bInMainQuit
void SDL_GetVersion(SDL_version *ver)
Get the version of SDL that is linked against your program.
const char * SDL_GetRevision(void)
Get the code revision of SDL that is linked against your program.
const char * SDL_GetPlatform()
Gets the name of the platform.
static void SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
SDL_bool SDL_IsTablet()
Return true if the current device is a tablet.
static SDL_bool SDL_PrivateShouldInitSubsystem(Uint32 subsystem)
int SDL_Init(Uint32 flags)
#define SDL_INIT_EVERYTHING
#define SDL_INIT_GAMECONTROLLER
#define SDL_INIT_JOYSTICK
SDL_bool SDL_IsAndroidTablet(void)
void SDL_AssertionsQuit(void)
#define SDL_assert(condition)
SDL_FORCE_INLINE SDL_bool SDL_HasExactlyOneBitSet32(Uint32 x)
SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
#define SDL_LogResetPriorities
void SDL_EventsQuit(void)
void SDL_GameControllerQuit(void)
int SDL_GameControllerInit(void)
void SDL_HapticQuit(void)
int SDL_JoystickInit(void)
void SDL_JoystickQuit(void)
#define SDL_REVISION_NUMBER
void SDL_SensorQuit(void)
#define SDL_arraysize(array)
#define SDL_VERSION(x)
Macro to determine SDL version program was compiled against.
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)
Information the version of SDL in use.