Blitz3D+ Command Reference

GfxDriverName$ ( driver )

Parameters

driver - driver index, from 1 to CountGfxDrivers()

Description

Returns the name of a graphics driver.

Drivers are numbered from 1. On the modern runtime there is a single driver and its name is "DirectX 12" - historically this listed each video card so the player could choose one in an options screen.

An index outside the valid range raises a runtime error in debug mode.

See also: CountGfxDrivers, SetGfxDriver, SystemProperty.

Example

; GfxDriverName Example
; ---------------------

; Count the graphics drivers installed in this machine
drivers=CountGfxDrivers()

Print "Graphics drivers found: "+drivers
Print ""

; GfxDriverName$ returns the name of each numbered driver
For t=1 To drivers
    Print t+") "+GfxDriverName$(t)
Next

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

End

Index