imGUI.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 #include <ionMath.h>
6 
7 //---- Define constructor and implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4.
8 
9 #define IM_VEC2_CLASS_EXTRA \
10  ImVec2(const vec2f& f) { x = f.X; y = f.Y; } \
11  operator vec2f() const { return vec2f(x,y); }
12 
13 #define IM_VEC4_CLASS_EXTRA \
14  ImVec4(const vec4f& f) { x = f.X; y = f.Y; z = f.Z; w = f.W; } \
15  operator vec4f() const { return vec4f(x,y,z,w); }
16 
17 #include <imgui.h>