Home -> PlatformBindings -> WindowInfoSDL3

Declaration

class WindowInfoSDL3;

Description

The WindowInfoSDL3 class is an SDL3 helper that detects the native window system used by an SDL_Window and builds the matching platform-specific IFrameBuffer.WindowInfoBase derived structure for framebuffer binding.

Availability: Builds where COBALT_RENDERER_SDL3_SUPPORT is enabled.

ImportantImportant

On macOS, WindowInfoSDL3::Initialize must be called from a module compiled as Objective-C++, because SDL exposes the Cocoa window object and the helper must access its content view.

ImportantImportant

On Linux with both Xlib and XCB support compiled in, the SDL helper selects Xlib for the SDL x11 video driver because the Xlib branch is tested first.

Members

Initialization methods

Name Description
Public member Initialize
Builds the platform-specific binding information from SDL state.

Data access methods

Name Description
Public member GetType
Returns the concrete platform binding type.
Public member Get
Returns a pointer to the concrete platform binding structure.

See also