Skip to content

GfxDriver

Claude edited this page Oct 27, 2026 · 4 revisions
BlitzLLVM

GfxDriver 〔BlitzLLVM〕

GfxDriver:Int32

Returns: The driver number, from 1 to CountGfxDrivers.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

The number of the graphics driver that draws the program. This is a BlitzLLVM extension: the original has no way to ask which driver was picked. Once a graphics window is open it is the GPU in use, before that it is the driver that SetGfxDriver chose, or 1.

Examples

SetGfxDriver CountGfxDrivers()
Graphics3D 640, 480, 0, 2
Print "Drawing with " + GfxDriverName(GfxDriver())
WaitKey

Related Commands

CountGfxDrivers, GfxDriverName, GfxModeDepth, GfxModeExists, GfxModeFormat, GfxModeHeight, GfxModeWidth, SetGfxDriver

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally