imGUI.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 #include <ionCore.h>
6 
7 //---- Define constructor and implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4.
8 #define IM_VEC2_CLASS_EXTRA \
9  ImVec2(const ion::vec2f& f) { x = f.X; y = f.Y; } \
10  operator ion::vec2f() const { return ion::vec2f(x,y); }
11 
12 #define IM_VEC4_CLASS_EXTRA \
13  ImVec4(const ion::vec4f& f) { x = f.X; y = f.Y; z = f.Z; w = f.W; } \
14  operator ion::vec4f() const { return ion::vec4f(x,y,z,w); }
15 
16 
17 //---- Use 32-bit vertex indices (instead of default: 16-bit) to allow meshes with more than 64K vertices
18 #define ImDrawIdx unsigned int
19 
20 
21 #include <imgui.h>