Renderer.viewport - multiple declarations
Function Renderer.viewport
Wraps SDL_RenderGetViewport
which gets the dsdl2
viewport of the renderer
Returns
viewport dsdl2
of the renderer
Function Renderer.viewport
Wraps SDL_RenderSetViewport
which sets the dsdl2
viewport of the dsdl2
Parameters
Name | Description |
---|---|
newViewport | dsdl2 to set as the rectangle viewport |
Throws
dsdl2
if failed to set the renderer's viewport
Function Renderer.viewport
Acts as SDL_RenderSetViewport(renderer, NULL)
which removes the dsdl2
viewport of the
dsdl2
void viewport
(
typeof(null) _
) @property @trusted;
Throws
dsdl2
if failed to set the renderer's viewport
Function Renderer.viewport
Wraps SDL_RenderSetViewport
which sets or removes the viewport dsdl2
of the dsdl2
void viewport
(
std .typecons .Nullable!(dsdl2.rect.Rect) newViewport
) @property @trusted;
Parameters
Name | Description |
---|---|
newViewport | dsdl2 to set as the rectangle viewport; null to remove the rectangle viewport |
Throws
dsdl2
if failed to set the renderer's viewport