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

Method reset

source/core/StarImage.cpp:246–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void Image::reset(Vec2U size, Maybe<PixelFormat> pf) {
247 reset(size[0], size[1], pf);
248}
249
250void Image::reset(unsigned width, unsigned height, Maybe<PixelFormat> pf) {
251 if (!pf)

Callers

nothing calls this directly

Calls 5

bytesPerPixelFunction · 0.85
freeFunction · 0.70
mallocFunction · 0.70
reallocFunction · 0.70
formatFunction · 0.70

Tested by

no test coverage detected