Renderer.viewport

Wraps SDL_RenderSetViewport which sets the dsdl2.Rect viewport of the dsdl2.Renderer

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

Parameters

newViewport Rect

dsdl2.Rect to set as the rectangle viewport

Throws

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

Meta