GfxDriver3D.htm 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>GfxDriver3D(driver)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. driver - display driver number to check, from 1 to CountGfxDrivers ()
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. GfxDriver3D returns True if the specified graphics driver is 3D-capable. <br />
  21. <br />
  22. GfxDriver3D is generally used after obtaining a list of available graphics drivers from a user's system via CountGfxDrivers(). You apply this to each driver in turn (or a selected driver) to see if it is 3D-capable. If this returns False, the driver can not perform 3D operations. <br />
  23. <br />
  24. On systems with more than one display driver, you can use this to check each for 3D capability before choosing one via the SetGfxDriver command.
  25. </td>
  26. </tr>
  27. </table>
  28. <h1><a href=../3d_examples/GfxDriver3D.bb>Example</a></h1>
  29. <table>
  30. <tr>
  31. <td>
  32. For a = 1 To CountGfxDrivers () <br />
  33. If GfxDriver3D (a) <br />
  34. Print GfxDriverName (a) + " is 3D-capable" <br />
  35. Else <br />
  36. Print GfxDriverName (a) + " is NOT 3D-capable" <br />
  37. EndIf <br />
  38. Delay 100 <br />
  39. Next
  40. </td>
  41. </tr>
  42. </table>
  43. <br>
  44. <a target=_top href=../index.htm>Index</a><br>
  45. <br>
  46. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=GfxDriver3D&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  47. </html>