2
0

func_graphics_graphicsmodes.rst 674 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. _func_graphics_graphicsmodes:
  2. =============
  3. GraphicsModes
  4. =============
  5. GraphicsModes -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. GraphicsModes:TGraphicsMode[]()
  10. Get graphics modes available under the current graphics driver
  11. A TGraphicsMode object contains the following fields: @width, @height, @depth and @hertz
  12. Parameters
  13. ==========
  14. Return Values
  15. =============
  16. An array of TGraphicsMode objects
  17. Examples
  18. ========
  19. .. code-block:: blitzmax
  20. Print "Available graphics modes:"
  21. For mode:TGraphicsMode=EachIn GraphicsModes()
  22. Print mode.width+","+mode.height+","+mode.depth+","+mode.hertz
  23. Next
  24. See Also
  25. ========