Renderer.viewport

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

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

Parameters

newViewport Nullable!Rect

dsdl2.Rect to set as the rectangle viewport; null to remove the rectangle viewport

Throws

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

Meta