MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetViewportAndScissors

Function SetViewportAndScissors

Source/Engine/Graphics/GPUContext.h:597–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595 /// </summary>
596 /// <param name="viewport">The viewport (in pixels).</param>
597 API_FUNCTION() FORCE_INLINE void SetViewportAndScissors(const Viewport& viewport)
598 {
599 SetViewport(viewport);
600 const Rectangle rect(viewport.Location.X, viewport.Location.Y, viewport.Width, viewport.Height);
601 SetScissor(rect);
602 }
603
604 /// <summary>
605 /// Sets the rendering viewport.

Callers 1

CopyTextureMethod · 0.85

Calls 1

SetViewportFunction · 0.85

Tested by

no test coverage detected