Skip to content

Accessing ImDrawData.CmdLists #4

@Moe2912

Description

@Moe2912

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions