You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: