2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 14:31:22 +00:00
metaforce/Runtime/GuiSys/CGuiWidgetDrawParms.hpp
Lioncash 6c475b6764 CGuiWidgetDrawParms: Make constexpr constructible
We can allow this structure to be constructed in a constexpr context.

This also allows us to remove the cpp file, given it's no longer
necessary.
2020-04-26 01:15:04 -04:00

19 lines
428 B
C++

#pragma once
#include <zeus/CVector3f.hpp>
namespace urde {
struct CGuiWidgetDrawParms {
float x0_alphaMod = 1.f;
zeus::CVector3f x4_cameraOffset;
constexpr CGuiWidgetDrawParms() = default;
constexpr CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
static constexpr CGuiWidgetDrawParms Default() { return {}; }
};
} // namespace urde