Struct DisplayMode

D struct that wraps SDL_DisplayMode containing display mode information

struct DisplayMode ;

Constructors

NameDescription
this (sdlDisplayMode) Contructs a dsdl2.DisplayMode from a vanilla SDL_DisplayMode from bindbc-sdl
this (pixelFormat, size, refreshRate, driverData) Constructs a dsdl2.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 dsdl2.DisplayMode
sdlDisplayMode[get] inout(sdl.video.SDL_DisplayMode)Gets the internal SDL_DisplayMode representation
width[get] inout(uint)Proxy to the width of the dsdl2.DisplayMode

Methods

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