I am having problems accessing ImDrawData.CmdLists as it should be an array, but it does not seem to be one. Am I missing something?
Edit: I worked around it with the following code:
Dim dd = Runtime.InteropServices.Marshal.PtrToStructure(Of DearImguiSharp.ImDrawData.__Internal)(draw_data.__Instance)
For n = 0 To draw_data.CmdListsCount - 1
Dim cmd_list = Runtime.InteropServices.Marshal.PtrToStructure(Of DearImguiSharp.ImDrawList.__Internal)(Runtime.InteropServices.Marshal.ReadIntPtr(dd.CmdLists + IntPtr.Size * n))
....
Next
I am having problems accessing ImDrawData.CmdLists as it should be an array, but it does not seem to be one. Am I missing something?
Edit: I worked around it with the following code: