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

Method setupImage

source/base/StarCellularLighting.cpp:181–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void CellularLightingCalculator::setupImage(Image& image, PixelFormat format) const {
182 Vec2S arrayMin = Vec2S(m_queryRegion.min() - m_calculationRegion.min());
183 Vec2S arrayMax = Vec2S(m_queryRegion.max() - m_calculationRegion.min());
184
185 image.reset(arrayMax[0] - arrayMin[0], arrayMax[1] - arrayMin[1], format);
186}
187
188void CellularLightIntensityCalculator::setParameters(Json const& config) {
189 m_lightArray.setParameters(

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected