SDL_InitFlags(3type)

✨ SDL_InitFlags(3type) ✨

okay bestie, welcome to the SDL3 DATATYPES corner of the man pages, this one's all about SDL_InitFlags πŸ’–


πŸŽ€ NAME πŸŽ€

SDL_InitFlags β€” the initialization flags for SDL_Init and/or SDL_InitSubSystem. that's it, that's the whole vibe, she's a bitmask and she's booked and busy πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_init.h>

typedef Uint32 SDL_InitFlags;

#define SDL_INIT_AUDIO      0x00000010u /**< `SDL_INIT_AUDIO` implies `SDL_INIT_EVENTS` */
#define SDL_INIT_VIDEO      0x00000020u /**< `SDL_INIT_VIDEO` implies `SDL_INIT_EVENTS`, should be initialized on the main thread */
#define SDL_INIT_JOYSTICK   0x00000200u /**< `SDL_INIT_JOYSTICK` implies `SDL_INIT_EVENTS` */
#define SDL_INIT_HAPTIC     0x00001000u
#define SDL_INIT_GAMEPAD    0x00002000u /**< `SDL_INIT_GAMEPAD` implies `SDL_INIT_JOYSTICK` */
#define SDL_INIT_EVENTS     0x00004000u
#define SDL_INIT_SENSOR     0x00008000u /**< `SDL_INIT_SENSOR` implies `SDL_INIT_EVENTS` */
#define SDL_INIT_CAMERA     0x00010000u /**< `SDL_INIT_CAMERA` implies `SDL_INIT_EVENTS` */

so it's a Uint32 underneath, she's just wearing a fancy typedef dress 🫢


πŸ’« DESCRIPTION πŸ’«

these are the flags you can pass to SDL_Init(), no cap. and like β€” you should only be specifying the subsystems you're actually gonna use in your app, bestie. don't be out here initializing the whole buffet if you're only eating one snack πŸ“


πŸ‘‘ AVAILABILITY πŸ‘‘

this datatype has been iconic since SDL 3.2.0 ✨


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, periodt πŸ’œ this one came from Simple Directmedia Layer, version SDL 3.4.18, dated as SDL_InitFlags(3type) β€” go forth and initialize responsibly, mwah πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from