DisplayMode.this - multiple declarations

Function DisplayMode.this

Contructs a dsdl2.DisplayMode from a vanilla SDL_DisplayMode from bindbc-sdl

ref this (
  sdl.video.SDL_DisplayMode sdlDisplayMode
) @safe;

Parameters

NameDescription
sdlDisplayMode the SDL_DisplayMode struct

Function DisplayMode.this

Constructs a dsdl2.DisplayMode by feeding it its attributes

ref this (
  const(PixelFormat) pixelFormat,
  uint[2] size,
  uint refreshRate,
  void* driverData = null
) @safe;

Parameters

NameDescription
pixelFormat pixel format
size size in pixels
refreshRate refresh rate per second
driverData internal driver data