SFML / imgui-sfml

Dear ImGui backend for use with SFML
MIT License
1.13k stars 169 forks source link

Update demo code in README #240

Closed Lecrapouille closed 1 year ago

Lecrapouille commented 1 year ago

Hi, in https://github.com/SFML/imgui-sfml/blob/ea890431d2c47e02f84b08d1467a881b88732102/README.md?plain=1#L122

The new way is:

    bool show = true;
    ImGui::ShowDemoWindow(&show);
Trider12 commented 1 year ago

There's nothing wrong with the current code. The default argument to this function is NULL:

IMGUI_API void          ShowDemoWindow(bool* p_open = NULL);
Lecrapouille commented 1 year ago

@Trider12 ah ok sorry it seemed I was not been able to compile on my side (I'm using the docker branch). I have to check it back