Changed syntax for (very rarely used) IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT mechanism, instead you only need to '#define ImDrawVert MyDrawVert' to use this feature, avoiding the need to declare the entire structure within an awkward macro. Using the old macro will now error with a message pointing you to the new method. (#38, #103, #1172, #1231, #2489)

This commit is contained in:
omar
2019-06-06 00:42:27 +02:00
parent c96f2c4057
commit 597c024904
5 changed files with 23 additions and 10 deletions

View File

@ -68,6 +68,9 @@
// Read about ImGuiBackendFlags_RendererHasVtxOffset for details.
//#define ImDrawIdx unsigned int
//---- Override ImDrawVert layout (see comments near ImDrawVert declaration)
//#define ImDrawVert MyDrawVert
//---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files.
/*
namespace ImGui