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

Method filled

source/core/StarImage.cpp:200–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200Image Image::filled(Vec2U size, Vec4B color, PixelFormat pf) {
201 Image image(size, pf);
202 image.fill(color);
203 return image;
204}
205
206Image::Image(PixelFormat pf)
207 : m_data(nullptr), m_width(0), m_height(0), m_pixelFormat(pf) {}

Callers

nothing calls this directly

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected