Class: SFML::C::Window::ContextSettings

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/sfml/c/window.rb

Overview

sfContextSettings — passed to sfWindow_create / sfRenderWindow_create to configure the underlying OpenGL context. Field order and types match CSFML/Window/Window.h exactly:

typedef struct {
unsigned int depthBits;
unsigned int stencilBits;
unsigned int antiAliasingLevel;
unsigned int majorVersion;
unsigned int minorVersion;
uint32_t     attributeFlags;
bool         sRgbCapable;
} sfContextSettings;