GraphicsDevice.setViewport

Sets viewport.

  1. void setViewport(int width, int height)
  2. void setViewport(Size!int size)
  3. void setViewport(V position, Size!int size)
    class GraphicsDevice
    @nogc const nothrow
    void
    setViewport
    (
    V
    )
    (
    in ref V position
    ,
    in ref Size!int size
    )
    if (
    is(V : vec2) ||
    is(V : ivec2)
    )

Meta