# SetGfxDriver index

# Parameters

index = index number obtained with CountGfxDrivers command

# Description

Some computers may have more than one video card and/or video driver installed (a good example is a computer system with a primary video card and a Voodoo2 or other pass-through card). Once you know how many drivers there are using the CountGfxDrivers(), you can iterate through them with GfxDriverName$ and display them for the user to choose from. Once the user has chosen (or you decide), you can set the graphics driver with this command. Normally, this won't be necessary with 2D programming.

# Example

; GfxDriver Examples ; Count how many drivers there are totalDrivers=CountGfxDrivers() Print "Choose a driver to use:" ; Go through them all and print their names (most people will have only 1) For t = 1 To totalDrivers Print t+") " + GfxDriverName$(t) Next ; Let the user choose one driver=Input("Enter Selection:") ; Set the driver! SetGfxDriver driver Print "Your driver has been selected!"

Index
Click here to view the latest version of this page online