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

Function SetViewport

Source/Engine/Graphics/GPUContext.h:609–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607 /// <param name="width">The width (in pixels).</param>
608 /// <param name="height">The height (in pixels).</param>
609 API_FUNCTION() FORCE_INLINE void SetViewport(float width, float height)
610 {
611 const Viewport viewport(0.0f, 0.0f, width, height);
612 SetViewport(viewport);
613 }
614
615 /// <summary>
616 /// Sets the rendering viewport.

Callers 3

GPUContext.hFile · 0.85
SetViewportAndScissorsFunction · 0.85
DrawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected