Window.displayMode

Wraps SDL_SetWindowDisplayMode which sets new display mode attributes to the window

  1. DisplayMode displayMode()
  2. void displayMode(DisplayMode newDisplayMode)
    class Window
    @property @trusted
    void
    displayMode

Parameters

newDisplayMode DisplayMode

dsdl2.DisplayMode containing the desired attributes

Throws

dsdl2.SDLException if failed to set the display mode

Meta