| 267 | } |
| 268 | |
| 269 | void CRenderLayerGroup::Render(const CRenderLayerParams &Params) |
| 270 | { |
| 271 | int ParallaxZoom = std::clamp((maximum(m_pGroup->m_ParallaxX, m_pGroup->m_ParallaxY)), 0, 100); |
| 272 | float aPoints[4]; |
| 273 | Graphics()->MapScreenToWorld(Params.m_Center.x, Params.m_Center.y, m_pGroup->m_ParallaxX, m_pGroup->m_ParallaxY, (float)ParallaxZoom, |
| 274 | m_pGroup->m_OffsetX, m_pGroup->m_OffsetY, Graphics()->ScreenAspect(), Params.m_Zoom, aPoints); |
| 275 | Graphics()->MapScreen(aPoints[0], aPoints[1], aPoints[2], aPoints[3]); |
| 276 | } |
| 277 | |
| 278 | /************** |
| 279 | * Tile Layer * |
nothing calls this directly
no test coverage detected