Blitz3D+ Command Reference

Windowed3D ( )

Parameters

None.

Description

Returns true if the machine can render 3D graphics in a window at the current desktop colour depth.

This check existed for older graphics cards, some of which could not render 3D in a window at all, or only when the desktop was set to a certain colour depth. Games used it to decide whether to offer a windowed mode, and Graphics3D mode 0 still consults it when deciding whether a debug-mode program may open windowed.

On the modern DirectX 12 runtime windowed 3D is always supported, so Windowed3D always returns true. The command remains for compatibility with classic startup code.

See also: Graphics3D, GfxModeExists, GfxDriver3D.

Example

; Windowed3D Example
; ------------------

; Ask the graphics card whether it can render 3D in a window at the current
; desktop colour depth. This runs before Graphics3D, so a game can decide
; whether to offer a windowed mode at all.
If Windowed3D() Then
    Print "Windowed3D() returned True"
    Print "This machine can run 3D graphics in a window"
Else
    Print "Windowed3D() returned False"
    Print "This machine can only run 3D graphics fullscreen"
EndIf

Print ""
Print "Press any key to close the example"
WaitKey

End

Index