func_graphics_flip.rst 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. _func_graphics_flip:
  2. ====
  3. Flip
  4. ====
  5. Flip -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. Flip( sync=-1 )
  10. Flip current graphics object
  11. #Flip swap the front and back buffers of the current graphics objects.
  12. If @sync is 0, then the flip occurs as soon as possible. If @sync is 1, then the flip occurs
  13. on the next vertical blank.
  14. If @sync is -1 and the current graphics object was created with the #Graphics command,
  15. then flips will occur at the graphics object's refresh rate regardless of whether or not the
  16. graphics hardware supports such a refresh rate.
  17. If @sync is -1 and the current graphics object was NOT created with the #Graphics command,
  18. then the flip will occur on the next vertical blank.
  19. Parameters
  20. ==========
  21. Return Values
  22. =============
  23. Nothing.
  24. Examples
  25. ========
  26. See Also
  27. ========