Home -> WindowSystemInfoSDL3 -> Initialize
Description
The Initialize method detects the SDL video driver and stores the corresponding platform-specific binding structure.
Important
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.
Usage
bool Initialize(cobalt::logging::ILogger* log);
Argument list
- log [cobalt::logging::ILogger*]
- The logger used for unsupported-driver error messages.
Return value
- [bool]
- true if a supported platform binding structure was created; otherwise false.