.. _func_graphics_max2d_setviewport: =========== SetViewport =========== SetViewport - Description =========== .. code-block:: blitzmax SetViewport( x,y,width,height ) Set drawing viewport The current ViewPort defines an area within the back buffer that all drawing is clipped to. Any regions of a DrawCommand that fall outside the current ViewPort are not drawn. Parameters ========== Return Values ============= Nothing. Examples ======== See Also ========