Skip to content

Better sample code and documentation  #45

@AmbitiousAlan

Description

@AmbitiousAlan

I pasted the sample code on the readme.
I got this
imgui/ImNodesEz.cpp:125: bool ImNodes::Ez::BeginNode(void*, const char*, ImVec2*, bool*): Assertion `GContext != nullptr' failed.
Aborted (core dumped)

something something context. OK.
You have another sample code. Looked through it. Ah!

Pasted this in:
static ImNodes::Ez::Context* context = ImNodes::Ez::CreateContext();

Only to be met with a new assertion fail!
imgui/imgui_draw.cpp:1792: void ImDrawListSplitter::SetCurrentChannel(ImDrawList*, int): Assertion `idx >= 0 && idx < _Count' failed.

Perhaps the sample code was written for a previous version of the library which is now outdated.
In any case, having something to run and play with incrementally is immensely helpful.

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