Renderer.viewport

Acts as SDL_RenderSetViewport(renderer, NULL) which removes the dsdl2.Rect viewport of the dsdl2.Renderer

  1. Rect viewport()
  2. void viewport(Rect newViewport)
  3. void viewport(typeof(null) _)
    class Renderer
    @property @trusted
    void
    viewport
    (
    typeof(null) _
    )
  4. void viewport(Nullable!Rect newViewport)

Throws

dsdl2.SDLException if failed to set the renderer's viewport

Meta