DisplayMode

D struct that wraps SDL_DisplayMode containing display mode information

Constructors

this
this()
Undocumented in source.
this
this(SDL_DisplayMode sdlDisplayMode)

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

this
this(PixelFormat pixelFormat, uint[2] size, uint refreshRate, void* driverData)

Constructs a dsdl2.DisplayMode by feeding it its attributes

Members

Functions

height
inout(uint) height()

Proxy to the height of the dsdl2.DisplayMode

sdlDisplayMode
inout(SDL_DisplayMode) sdlDisplayMode()

Gets the internal SDL_DisplayMode representation

toString
string toString()

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

width
inout(uint) width()

Proxy to the width of the dsdl2.DisplayMode

Variables

driverData
void* driverData;

Internal driver data

pixelFormat
PixelFormat pixelFormat;

Pixel format used

refreshRate
uint refreshRate;

Refresh rate per second

size
uint[2] size;

Size in pixels

Meta