Struct DisplayMode

D struct that wraps SDL_DisplayMode containing display mode information

struct DisplayMode ;

Constructors

NameDescription
this (sdlDisplayMode) Contructs a dsdl.DisplayMode from a vanilla SDL_DisplayMode from bindbc-sdl
this (pixelFormat, size, refreshRate, driverData) Constructs a dsdl.DisplayMode by feeding it its attributes

Fields

NameTypeDescription
driverData void*Internal driver data
pixelFormat PixelFormatPixel format used
refreshRate uintRefresh rate per second
size uint[2]Size in pixels

Properties

NameTypeDescription
height[get] inout(uint)Proxy to the height of the dsdl.DisplayMode
sdlDisplayMode[get] inout(sdl.video.SDL_DisplayMode)Gets the internal SDL_DisplayMode representation
width[get] inout(uint)Proxy to the width of the dsdl.DisplayMode

Methods

NameDescription
toString () Formats the dsdl.DisplayMode into its construction representation: "dsdl.DisplayMode(<pixelFormat>, <size>, <refreshRate>, <driverData>)"