Allow to override ImDrawIdx type (#292)

This commit is contained in:
ocornut
2015-08-09 11:11:39 -06:00
parent 915b46f1c1
commit 0c9fcdbe71
2 changed files with 7 additions and 8 deletions

View File

@ -1013,8 +1013,10 @@ struct ImDrawCmd
void* UserCallbackData; // The draw callback code can access this.
};
// Vertex index
// Vertex index (override with, e.g. '#define ImDrawIdx unsigned int' in ImConfig)
#ifndef ImDrawIdx
typedef unsigned short ImDrawIdx;
#endif
// Vertex layout
#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT