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

Method begin

source/base/StarCellularLighting.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void CellularLightingCalculator::begin(RectI const& queryRegion) {
92 m_queryRegion = queryRegion;
93 if (m_monochrome) {
94 m_calculationRegion = RectI(queryRegion).padded((int)m_lightArray.right().borderCells());
95 m_lightArray.right().begin(m_calculationRegion.width(), m_calculationRegion.height());
96 } else {
97 m_calculationRegion = RectI(queryRegion).padded((int)m_lightArray.left().borderCells());
98 m_lightArray.left().begin(m_calculationRegion.width(), m_calculationRegion.height());
99 }
100}
101
102RectI CellularLightingCalculator::calculationRegion() const {
103 return m_calculationRegion;

Callers 3

AssetsMethod · 0.45
readJsonMethod · 0.45
readMethod · 0.45

Calls 6

paddedMethod · 0.80
borderCellsMethod · 0.80
rightMethod · 0.80
leftMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected