DarkBASIC Professional Help File

DX11 GET SCREEN WIDTH

Retrieves the width of the screen in pixels.
This will return the with value passed to DX11 INIT, or a subsequent call to DX11 SET DISPLAY MODE,
and corresponds to the resolution of the back-/front buffer; it will not change if you resize the rendering window.

Syntax

    Return Dword = DX11 GET SCREEN WIDTH()

Parameters

    This function does not take any parameters.

Returns

The horizontal resolution of the render buffer.

See also

DISPLAY Functions Menu
DX11 Function Categories