|
@@ -30,12 +30,10 @@
|
30
|
30
|
#define IMGUI_INCLUDE_IMGUI_USER_H
|
31
|
31
|
|
32
|
32
|
//---- Define implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4.
|
33
|
|
-#include <glm/vec2.hpp>
|
34
|
33
|
#define IM_VEC2_CLASS_EXTRA \
|
35
|
34
|
ImVec2(const glm::vec2& f) { x = f.x; y = f.y; } \
|
36
|
35
|
operator glm::vec2() const { return glm::vec2(x, y); }
|
37
|
36
|
|
38
|
|
-#include <glm/vec4.hpp>
|
39
|
37
|
#define IM_VEC4_CLASS_EXTRA \
|
40
|
38
|
ImVec4(const glm::vec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \
|
41
|
39
|
operator glm::vec4() const { return glm::vec4(x,y,z,w); }
|