SDL_GLCONTEXTRESETNOTIFICATION(3type)

πŸ’… SDL_GLContextResetNotification πŸ’…

okay bestie, so this is a page from the SDL3 DATATYPES collection, and it's all about SDL_GLContextResetNotification β€” the lil' datatype that holds the possible values you can shove into the SDL_GL_CONTEXT_RESET_NOTIFICATION attribute. yes, the name is a mouthful. no, we don't make the rules. πŸŽ€


✨ NAME ✨

SDL_GLContextResetNotification β€” the possible values that get set on the SDL_GL_CONTEXT_RESET_NOTIFICATION attribute. that's it, that's the whole job, and it does it gorgeously. πŸ‘‘


✨ SYNOPSIS ✨

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

#include <SDL3/SDL_video.h>

and here's the datatype itself, literally just a Uint32 wearing a fancy name:

typedef Uint32 SDL_GLContextResetNotification;

and the two iconic values it can hold, bestie, memorize these:

#define SDL_GL_CONTEXT_RESET_NO_NOTIFICATION  0x0000
#define SDL_GL_CONTEXT_RESET_LOSE_CONTEXT     0x0001

so it's 0x0000 or 0x0001. two options. both slay. pick wisely. πŸ’–


✨ AVAILABILITY ✨

this datatype has been serving looks since SDL 3.2.0 β€” so if you're on anything older, sorry babe, it's not gonna be there. πŸ¦‹


fr fr, the vibes are immaculate but the facts are the facts: this type is a Uint32, and those two #defines are the only values named here. don't go inventing a third one, i'm begging. πŸ™ˆ

sign-off time, mwah πŸ’œ β€” this lil' page came to you from the Simple Directmedia Layer crew, sitting pretty at version SDL 3.4.18. go forth and reset those contexts, bestie, you're the main character now. periodt. πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from