SDL_GLContextFlag(3type)

πŸ’– SDL_GLContextFlag πŸ’–

okay bestie, welcome to the SDL_GLContextFlag(3type) page from the SDL3 DATATYPES crew 🫢 this is the lil' typedef that holds all the possible flags you can set for the SDL_GL_CONTEXT_FLAGS attribute. she's small, she's Uint32, she's lowkey iconic πŸ’…


✨ NAME ✨

SDL_GLContextFlag β€” the possible flags you can set for the SDL_GL_CONTEXT_FLAGS attribute 🌈


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_video.h>

typedef Uint32 SDL_GLContextFlag;

#define SDL_GL_CONTEXT_DEBUG_FLAG              0x0001
#define SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG 0x0002
#define SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG      0x0004
#define SDL_GL_CONTEXT_RESET_ISOLATION_FLAG    0x0008

so yeah, it's literally just a Uint32 in a cute lil' trench coat, and the four defines above are the flags you can OR together. no cap 🧚


🌸 AVAILABILITY 🌸

this datatype has been serving looks since SDL 3.2.0 ✨ she's not new new, but she's not ancient either. periodt.


and that's the whole vibe, bestie β€” every flag, every value, all of it, exactly where it belongs. go forth and set your context flags responsibly πŸ’œ

source: Simple Directmedia Layer Β· version: SDL 3.4.18 Β· manual: SDL_GLContextFlag(3type) πŸ¦‹

mwah, stan a good typedef, bye bestie πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from