Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ getGPUContext()

static IGPUContext * Flint::GPUWindowCast::getGPUContext ( Flint::IWindow * window)
inlinestatic

Cast window to IGPUContext.

Logs an error and returns nullptr if window is null or does not implement IGPUContext.

Parameters
windowThe window to cast.
Returns
Pointer to the IGPUContext interface, or nullptr on failure.

Definition at line 29 of file gpu-cast.h.