MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ClampRegion

Method ClampRegion

deps/LLGL/sources/Core/Image.cpp:519–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void Image::ClampRegion(Offset3D& offset, Extent3D& extent) const
520{
521 offset.x = std::max(offset.x, 0);
522 offset.y = std::max(offset.y, 0);
523 offset.z = std::max(offset.z, 0);
524
525 extent.width = std::min(extent.width, GetExtent().width);
526 extent.height = std::min(extent.height, GetExtent().height);
527 extent.depth = std::min(extent.depth, GetExtent().depth);
528}
529
530
531} // /namespace LLGL

Callers 1

BlitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected