| 89 | } |
| 90 | |
| 91 | void 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 | |
| 102 | RectI CellularLightingCalculator::calculationRegion() const { |
| 103 | return m_calculationRegion; |