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 aUint32, 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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms