Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
GLProfile
Values for GLattr->SDL_GL_CONTEXT_PROFILE_MASK. Request a profile BEFORE creating the window, with Core->GLSetAttribute. Ask for CORE to get a modern (3.2+) context. On macOS this is mandatory, not a preference: without it you are handed a legacy 2.1 context, and macOS offers no 3.3 compatibility profile at all.
Items
- SDL_GL_CONTEXT_PROFILE_CORE = 1
- SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 2
- SDL_GL_CONTEXT_PROFILE_ES = 4