GfxMode3D.htm 1.5 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>GfxMode3D(mode)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. mode - graphics mode number from 1 - CountGfxModes ()
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. GfxMode3D returns True if the specified graphics mode is 3D-capable. <br />
  21. <br />
  22. GfxMode3D is generally used after obtaining a list of available display modes from a user's system via CountGfxModes (). You apply this to each mode in turn (or a selected mode) to see if you can enter 3D mode. If this returns False, calling Graphics3D () with this mode's details will fail! <br />
  23. <br />
  24. If you don't wish to perform this check, the only Graphics3D call you can make with a guarantee of working on 99% of 3D graphics cards is 'Graphics3D 640, 480'. However, see GfxModeExists' gfx3d parameter for another method of performing this check.
  25. </td>
  26. </tr>
  27. </table>
  28. <h1><a href=../3d_examples/GfxMode3D.bb>Example</a></h1>
  29. <table>
  30. <tr>
  31. <td>
  32. For a = 1 To CountGfxModes () <br />
  33. If GfxMode3D (a) <br />
  34. Print "Mode " + a + " is 3D-capable" <br />
  35. Else <br />
  36. Print "Mode " + 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=GfxMode3D&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  47. </html>