GFXModeHeight.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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>GFXModeHeight (mode)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Once you determine the video modes available by the video card using CountGFXModes(), you can iterate through them and determine the width, height, and color depth capabilities of each mode. Use this command to get the height of the mode. Use the GFXModeWidth and GFXModeDepth to get the remaining parameters.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/GFXModeHeight.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; CountGFXModes()/GfxModeWidth/GfxModeHeight/GfxModeDepth example <br />
  29. <br />
  30. intModes=CountGfxModes() <br />
  31. <br />
  32. Print "There are " + intModes + "graphic modes available:" <br />
  33. <br />
  34. ; Display all modes including width, height, and color depth <br />
  35. For t = 1 To intModes <br />
  36. Print "Mode " + t + ": <br />
  37. Print "Width=" + GfxModeWidth(t) <br />
  38. Print "Height=" + GfxModeHeight(t) <br />
  39. Print "Height=" + GfxModeDepth(t) <br />
  40. Next <br />
  41. </td>
  42. </tr>
  43. </table>
  44. <br>
  45. <a target=_top href=../index.htm>Index</a><br>
  46. <br>
  47. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=GFXModeHeight&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  48. </html>