Integration.h file
Conversion of Dear ImGui math types.
Provides conversion for the following types:
| Magnum vector type | Equivalent ImGui type |
|---|---|
| Vector2 | ImVec2 |
| Vector4, Color4 | ImVec4, ImColor |
| Vector3, Color3 | ImColor |
Note that conversion of ImColor to Color3 loses the alpha channel, while in the other direction alpha will be set to 1.0f.
Example usage:
#include <Magnum/ImGuiIntegration/Integration.h> ImVec2 a{20.0f, 50.0f}; Vector2 b(a); using namespace Math::Literals; ImColor c = ImColor(0xff9391_rgbf);