SDL_InitStatus(3type)

πŸ’– SDL_InitStatus β€” a whole type page, bestie πŸ’–

okay so real quick: this is a page from the SDL3 DATATYPES corner of the SDL_InitStatus(3type) manual, and it's literally just here to tell you about one little enum. tiny page, big vibes. let's get into it 🫢


✨ NAME ✨

SDL_InitStatus β€” the current status of an SDL_InitState structure. that's it, that's the whole job description πŸ’…


🌸 SYNOPSIS 🌸

bestie you gotta pull in the header first, no cap:

#include <SDL3/SDL_mutex.h>

and here's the icon herself, the enum in all her glory:

typedef enum SDL_InitStatus
{
    SDL_INIT_STATUS_UNINITIALIZED,
    SDL_INIT_STATUS_INITIALIZING,
    SDL_INIT_STATUS_INITIALIZED,
    SDL_INIT_STATUS_UNINITIALIZING
} SDL_InitStatus;

look at those four states. four little stages of being. it's giving a whole lifecycle arc 😭✨

  • SDL_INIT_STATUS_UNINITIALIZED β€” hasn't started anything yet, just vibing
  • SDL_INIT_STATUS_INITIALIZING β€” mid-glow-up, currently in progress
  • SDL_INIT_STATUS_INITIALIZED β€” done, ready, main character energy πŸ‘‘
  • SDL_INIT_STATUS_UNINITIALIZING β€” packing up, saying bye, wrapping it up

πŸ¦‹ AVAILABILITY πŸ¦‹

this enum has been around since SDL 3.2.0. she's not new new, but she's not ancient either. lowkey iconic. ✨


πŸ’œ a lil sign-off πŸ’œ

and that's the page!! this came to you straight from Simple Directmedia Layer, chilling at version SDL 3.4.18, and yeah it's dated with SDL_InitStatus(3type) because that's literally who she is πŸŽ€

go forth and check your init status, bestie. stay SDL_INIT_STATUS_INITIALIZED fr fr πŸ’–πŸŒΈ
πŸ“¦ where this page comes from