mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-28 07:47:02 -05:00
Added syntax highlighting
@@ -3,7 +3,8 @@
|
||||

|
||||
|
||||
### Source
|
||||
```
|
||||
|
||||
```cpp
|
||||
// NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h"
|
||||
// Here we only declare simple +/- operators so others don't leak into the demo code.
|
||||
static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x+rhs.x, lhs.y+rhs.y); }
|
||||
|
||||
Reference in New Issue
Block a user