MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / decreaseZoomLevel

Method decreaseZoomLevel

src/engine/basics/Camera.cxx:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void Camera::decreaseZoomLevel()
24{
25 if (zoomLevel > 0.5)
26 {
27 zoomLevel -= 0.5;
28 centerScreenOnPoint(centerIsoCoordinates);
29 if (Engine::instance().map != nullptr)
30 Engine::instance().map->refresh();
31 }
32}
33
34void Camera::setPinchDistance(float pinchDistance, int isoX, int isoY)
35{

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.45

Tested by

no test coverage detected