| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <html>
- <head>
- <title>Blitz3D Docs</title>
- <link rel=stylesheet href=../css/commands.css type=text/css>
- </head>
- <body>
- <h1>CountGfxDrivers()</h1>
- <h1>Parameters</h1>
- <table>
- <tr>
- <td>
- None.
- </td>
- </tr>
- </table>
- <h1>Description</h1>
- <table>
- <tr>
- <td>
- 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, 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 SetGfxDriver. Normally, this won't be necessary with 2D programming.
- </td>
- </tr>
- </table>
- <h1><a href=../2d_examples/CountGfxDrivers.bb>Example</a></h1>
- <table>
- <tr>
- <td>
- ; GfxDriver Examples
<br />
-
<br />
- ; Count how many drivers there are
<br />
- totalDrivers=CountGfxDrivers()
<br />
- Print "Choose a driver to use:"
<br />
-
<br />
- ; Go through them all and print their names (most people will have only 1)
<br />
- For t = 1 To totalDrivers
<br />
- Print t+") " + GfxDriverName$(t)
<br />
- Next
<br />
-
<br />
- ; Let the user choose one
<br />
- driver=Input("Enter Selection:")
<br />
-
<br />
- ; Set the driver!
<br />
- SetGfxDriver driver
<br />
- Print "Your driver has been selected!"
<br />
- </td>
- </tr>
- </table>
- <br>
- <a target=_top href=../index.htm>Index</a><br>
- <br>
- Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=CountGfxDrivers&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
- </html>
|