2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 07:47:42 +00:00

COmegaPirate: Implement CFlash

This commit is contained in:
2020-04-19 02:47:25 -04:00
parent 025a989e12
commit 4e88f503ac
12 changed files with 144 additions and 61 deletions

View File

@@ -45,12 +45,12 @@ void CScanDisplay::CDataDot::Draw(const zeus::CColor& col, float radius) {
CGraphics::SetModelMatrix(xf);
zeus::CColor useColor = col;
useColor.a() *= x24_alpha;
const CTexturedQuadFilter::Vert verts[4] = {
const std::array<CTexturedQuadFilter::Vert, 4> verts{{
{{-radius, 0.f, radius}, {0.f, 1.f}},
{{-radius, 0.f, -radius}, {0.f, 0.f}},
{{radius, 0.f, radius}, {1.f, 1.f}},
{{radius, 0.f, -radius}, {1.f, 0.f}},
};
}};
m_quad.drawVerts(useColor, verts);
}
}