Skip to content

Commit d9d85c5

Browse files
committed
Examples: Define IMGUI_DEFINE_MATH_OPERATORS before <imgui.h> (#209), thanks @ocornut
1 parent 2a51cdd commit d9d85c5

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

docs/CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ v0.9.2 (WIP):
44

55
CHANGE: Editor: Define IMGUI_DEFINE_MATH_OPERATORS before <imgui.h> (#209), thanks @ocornut
66

7+
CHANGE: Examples: Define IMGUI_DEFINE_MATH_OPERATORS before <imgui.h> (#209), thanks @ocornut
8+
79
BUGFIX: Editor: Correctly initialize 'width' for view resize code (thx @gnif)
810

911
BUGFIX: Examples: Handle node deletion before links (#182)

examples/blueprints-example/blueprints-example.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
#define IMGUI_DEFINE_MATH_OPERATORS
12
#include <application.h>
23
#include "utilities/builders.h"
34
#include "utilities/widgets.h"
45

56
#include <imgui_node_editor.h>
6-
7-
#define IMGUI_DEFINE_MATH_OPERATORS
87
#include <imgui_internal.h>
98

109
#include <string>

examples/blueprints-example/utilities/builders.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// CREDITS
88
// Written by Michal Cichon
99
//------------------------------------------------------------------------------
10-
# include "builders.h"
1110
# define IMGUI_DEFINE_MATH_OPERATORS
11+
# include "builders.h"
1212
# include <imgui_internal.h>
1313

1414

examples/blueprints-example/utilities/drawing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# include "drawing.h"
21
# define IMGUI_DEFINE_MATH_OPERATORS
2+
# include "drawing.h"
33
# include <imgui_internal.h>
44

55
void ax::Drawing::DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor)

examples/blueprints-example/utilities/widgets.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# include "widgets.h"
21
# define IMGUI_DEFINE_MATH_OPERATORS
2+
# include "widgets.h"
33
# include <imgui_internal.h>
44

55
void ax::Widgets::Icon(const ImVec2& size, IconType type, bool filled, const ImVec4& color/* = ImVec4(1, 1, 1, 1)*/, const ImVec4& innerColor/* = ImVec4(0, 0, 0, 0)*/)

examples/canvas-example/canvas-example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# include <imgui.h>
21
# define IMGUI_DEFINE_MATH_OPERATORS
2+
# include <imgui.h>
33
# include <imgui_internal.h>
44
# include <imgui_canvas.h>
55
# include <application.h>

0 commit comments

Comments
 (0)