MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / copyInto

Method copyInto

source/core/StarImage.cpp:439–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439void Image::copyInto(Vec2U const& min, Image const& image) {
440 Vec2U max = (min + image.size()).piecewiseMin(size());
441
442 for (unsigned y = min[1]; y < max[1]; ++y) {
443 for (unsigned x = min[0]; x < max[0]; ++x)
444 set(x, y, image.get(Vec2U(x, y) - min));
445 }
446}
447
448void Image::drawInto(Vec2U const& min, Image const& image) {
449 Vec2U max = (min + image.size()).piecewiseMin(size());

Callers 4

renderMethod · 0.80
scanLiquidsFunction · 0.80
processImageOperationFunction · 0.80
convertMethod · 0.80

Calls 5

sizeFunction · 0.85
piecewiseMinMethod · 0.80
setFunction · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected