func_graphics_max2d_setviewport.rst 479 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _func_graphics_max2d_setviewport:
  2. ===========
  3. SetViewport
  4. ===========
  5. SetViewport -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetViewport( x,y,width,height )
  10. Set drawing viewport
  11. The current ViewPort defines an area within the back buffer that all drawing is clipped to. Any
  12. regions of a DrawCommand that fall outside the current ViewPort are not drawn.
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. Nothing.
  18. Examples
  19. ========
  20. See Also
  21. ========