Add ImVec2 operator-.

This commit is contained in:
Bartosz Taudul 2017-09-18 02:16:35 +02:00
parent 11e9327e02
commit 3eb17e9969

View File

@ -5,5 +5,6 @@
#include "../imgui/imgui_internal.h" #include "../imgui/imgui_internal.h"
ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); } ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); }
ImVec2 operator-( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x - r.x, l.y - r.y ); }
#endif #endif