2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 16:06:08 +00:00

CModel: Mark CModelFlag instances as constexpr where applicable

Allows more runtime initializes to potentially be elided.
This commit is contained in:
Lioncash
2020-04-11 16:53:59 -04:00
parent 7055b6983f
commit 75c07677ed
11 changed files with 20 additions and 20 deletions

View File

@@ -520,7 +520,7 @@ void CFishCloud::RenderBoid(int idx, const CBoid& boid, u32& drawMask,
model.GetModelInst()->SetAmbientColor(zeus::skWhite);
CGraphics::SetModelMatrix(zeus::lookAt(boid.x0_pos, boid.x0_pos + boid.xc_vel));
if (thermalHot) {
CModelFlags thermFlags(0, 0, 3, zeus::skWhite);
constexpr CModelFlags thermFlags(0, 0, 3, zeus::skWhite);
mData.RenderThermal(zeus::skWhite, zeus::CColor(0.f, 0.25f), thermFlags);
} else {
mData.GetAnimationData()->Render(model, flags, std::nullopt, nullptr);