DarkBASIC Professional Help File

DX11 INIT

Initializes the DirectX 11 Engine.
Almost all other functions in the DX11 library are dependent on the engine having been initialized and will thus fail if called before this.
Note that the width and height parameters must correspond to a valid display mode on the system that will run your program.
You can optionally provide a feature level that determines what hardware will be needed to run your program. This means that you can support older machines that only
have a DX10 card, but can add specific DX11 features if the hardware supports it. You can use the DX11 GET HARDWARE VERSION function at runtime to determine if you
can use any such DX11-exclusive functions.

Syntax

    DX11 INIT width, height, fullscreen, caption, [featureLevel], [windowStyle]

Parameters

    width

> Dword
> The width of the screen to create.

    height

> Dword
> The height of the screen to create.

    fullscreen

> Boolean
> Set to true to run in fullscreen mode, false for windowed.

    caption

> String
> The caption of the created output window.

    [Optional] featureLevel

> Dword
> Set to DXVERSION_10_0 or DXVERSION_10_1 to make the engine run in backwards compatibility mode with hardware using those DX versions. Defaults to DXVERSION_11_0.

    [Optional] windowStyle

> Dword
> You can optionally supply a custom window style if you want to alter the output window.

Returns

This function does not return a value.

See also

CORE Functions Menu
DX11 Function Categories