class SFML::Context

Headless OpenGL context — for compiling shaders, generating textures, or doing GL work without a window. SFML attaches the context to whichever thread constructed it.

ctx = SFML::Context.new ctx.active = true # … raw GL work / shader compile … ctx.active = false

CSFML always returns a non-NULL context on creation (it falls back to a pbuffer / EGL surface if no display is available), so the constructor doesn’t raise.