Function CE::Rendering::resolve_clip_region
Defined in File clip-region.h
Function Documentation
-
PixelClipRect2D CE::Rendering::resolve_clip_region(const ClipRegion2D ®ion, ::CE::Platform::FramebufferSize framebuffer)
Declaration:
[[nodiscard]]Clamp to the logical viewport and map outward-rounded edges to framebuffer pixels.
See also
- Parameters:
region – Retained logical rectangle and positive logical extent.
framebuffer – Current nonnegative pixel width/height.
- Returns:
Top-left pixel bounds: floor left/top, ceil right/bottom; empty input or zero framebuffer returns an empty rectangle. Invalid region or negative framebuffer dimensions throw invalid_args. CPU-only: no native scissor/bind occurs.