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

Method MapScreenToInterface

src/engine/graphics.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void IGraphics::MapScreenToInterface(float CenterX, float CenterY, float Zoom)
50{
51 float aPoints[4];
52 MapScreenToWorld(CenterX, CenterY, 100.0f, 100.0f, 100.0f,
53 0, 0, ScreenAspect(), Zoom, aPoints);
54 MapScreen(aPoints[0], aPoints[1], aPoints[2], aPoints[3]);
55}

Callers 3

UpdateMethod · 0.80
DoRenderMethod · 0.80
RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected