MCPcopy Create free account
hub / github.com/ddnet/ddnet / Render

Method Render

src/game/map/render_layer.cpp:269–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void 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 *

Callers

nothing calls this directly

Calls 14

maximumFunction · 0.85
GraphicsFunction · 0.85
RenderMapFunction · 0.85
str_formatFunction · 0.85
MapScreenToWorldMethod · 0.80
ScreenAspectMethod · 0.80
BlendNormalMethod · 0.80
ForceRenderQuadsMethod · 0.80
RenderDebugClipMethod · 0.80
ColorRGBAClass · 0.50

Tested by

no test coverage detected