mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-26 06:48:26 +01:00
Added comment about defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h
This commit is contained in:
parent
3b028c7ebf
commit
da5227fa28
2
imgui.h
2
imgui.h
@ -685,7 +685,7 @@ struct ImDrawVert
|
|||||||
ImU32 col;
|
ImU32 col;
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
// You can change the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT.
|
// You can change the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h
|
||||||
// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine.
|
// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine.
|
||||||
// The type has to be described by the #define (you can either declare the struct or use a typedef)
|
// The type has to be described by the #define (you can either declare the struct or use a typedef)
|
||||||
IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT;
|
IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user