Changeset View
Changeset View
Standalone View
Standalone View
source/gui/ObjectTypes/CMiniMap.cpp
Show First 20 Lines • Show All 602 Lines • ▼ Show 20 Lines | void CMiniMap::Draw(CCanvas2D& canvas) | ||||
unitMatrix.RotateZ(angle); | unitMatrix.RotateZ(angle); | ||||
// Scale square maps to fit. | // Scale square maps to fit. | ||||
unitMatrix.Scale(unitScale, unitScale, 1.f); | unitMatrix.Scale(unitScale, unitScale, 1.f); | ||||
// Move the minimap back to it's starting position. | // Move the minimap back to it's starting position. | ||||
unitMatrix.Translate((x2 - x) / 2.f, (y2 - y) / 2.f, 0.f); | unitMatrix.Translate((x2 - x) / 2.f, (y2 - y) / 2.f, 0.f); | ||||
// Move the minimap to it's final location. | // Move the minimap to it's final location. | ||||
unitMatrix.Translate(x, y, 0.0f); | unitMatrix.Translate(x, y, 0.0f); | ||||
// Apply the gui matrix. | // Apply the gui matrix. | ||||
unitMatrix *= GetDefaultGuiMatrix(); | unitMatrix.Concatenate(GetDefaultGuiMatrix()); | ||||
vladislavbelov: Are there other occurrences? | |||||
Done Inline ActionsI found no other occurrences in pyrogenesis itself, didn't check the tests. wraitii: I found no other occurrences in pyrogenesis itself, didn't check the tests. | |||||
Done Inline ActionsYou can remove the operator and a compiler will tell you all usages. vladislavbelov: You can remove the operator and a compiler will tell you all usages. | |||||
Done Inline ActionsThat's what I did, I just didn't recompile the tests. wraitii: That's what I did, I just didn't recompile the tests. | |||||
Done Inline ActionsThen you also need to check atlas. vladislavbelov: Then you also need to check atlas. | |||||
// Load the transform into the shader. | // Load the transform into the shader. | ||||
shader->Uniform(str_transform, unitMatrix); | shader->Uniform(str_transform, unitMatrix); | ||||
const float sx = (float)width / ((m_MapSize - 1) * TERRAIN_TILE_SIZE); | const float sx = (float)width / ((m_MapSize - 1) * TERRAIN_TILE_SIZE); | ||||
const float sy = (float)height / ((m_MapSize - 1) * TERRAIN_TILE_SIZE); | const float sy = (float)height / ((m_MapSize - 1) * TERRAIN_TILE_SIZE); | ||||
CSimulation2::InterfaceList ents = sim->GetEntitiesWithInterface(IID_Minimap); | CSimulation2::InterfaceList ents = sim->GetEntitiesWithInterface(IID_Minimap); | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Are there other occurrences?