File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,17 @@ flag use-wchar32
126
126
manual :
127
127
True
128
128
129
+ flag use-ImDrawIdx32
130
+ description :
131
+ Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices.
132
+ Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices).
133
+ Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd: :VtxOffset in your renderer.
134
+ Read about ImGuiBackendFlags_RendererHasVtxOffset for details.
135
+ default :
136
+ True
137
+ manual :
138
+ True
139
+
129
140
common common
130
141
build-depends :
131
142
base
@@ -181,6 +192,10 @@ library
181
192
cxx-options : -DIMGUI_USE_WCHAR32
182
193
cpp-options : -DIMGUI_USE_WCHAR32
183
194
195
+ if flag(use-ImDrawIdx32)
196
+ cxx-options : "-DImDrawIdx=unsigned int"
197
+ cpp-options : "-DImDrawIdx=unsigned int"
198
+
184
199
if flag(opengl2)
185
200
exposed-modules :
186
201
DearImGui.OpenGL2
You can’t perform that action at this time.
0 commit comments