SDL_GLProfile(3type)
π SDL_GLProfile π
okay bestie, welcome to the SDL3 DATATYPES corner of the manual β this one's SDL_GLProfile(3type) and it's short but it's mighty π«Ά
β¨ NAME β¨
SDL_GLProfile β the possible values you can set for the SDL_GL_CONTEXT_PROFILE_MASK attribute. that's it, that's the whole vibe. it's a "which flavour of OpenGL are we doing today" kind of situation π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
typedef Uint32 SDL_GLProfile;
#define SDL_GL_CONTEXT_PROFILE_CORE 0x0001 /**< OpenGL Core Profile context */
#define SDL_GL_CONTEXT_PROFILE_COMPATIBILITY 0x0002 /**< OpenGL Compatibility Profile context */
#define SDL_GL_CONTEXT_PROFILE_ES 0x0004 /**< GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
so yeah β it's a Uint32 underneath, lowkey just an unsigned integer doing cosplay as a profile selector, and the actual choices are these three #defines right here π
SDL_GL_CONTEXT_PROFILE_CORE=0x0001β OpenGL Core Profile context πSDL_GL_CONTEXT_PROFILE_COMPATIBILITY=0x0002β OpenGL Compatibility Profile context πΈSDL_GL_CONTEXT_PROFILE_ES=0x0004βGLX_CONTEXT_ES2_PROFILE_BIT_EXTπ¦
not me pointing out that the hex values are literally 0x0001, 0x0002 and 0x0004 β clean bitflag energy, one bit each, iconic behavior fr fr β¨
π AVAILABILITY π
this datatype has been around since SDL 3.2.0 β so it's not some brand new baby, it's been serving for a minute π
ngl, if you're poking at GL context profile masks, make sure your SDL is at least 3.2.0 or this whole thing is giving nothing π
anyway bestie, that's the entire page, no cap. go forth and pick your profile π§
with love from the Simple Directmedia Layer girlies, SDL 3.4.18, and this lil SDL_GLProfile(3type) page β mwah ππ
π¦ 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