createGLWindow

Create an OpenGL window.

This only creates a window, not a GL context. The caller has to do that.

package @system nothrow @nogc
SDL_Window*
createGLWindow
(
size_t w
,
size_t h
,
Flag!"fullscreen" fullscreen
)

Parameters

w size_t

Window width in pixels.

h size_t

Window height in pixels. fullscreen) = If true, create a fullscreen window.

Return Value

Type: SDL_Window*

An SDL window. It's the caller's responsibility to destroy the window.

Meta