pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping
https://pthom.github.io/hello_imgui
MIT License
604 stars 91 forks source link

new CustomBackground callback #72

Closed wkjarosz closed 7 months ago

wkjarosz commented 7 months ago

fixes #70

I wasn't sure whether the markdown documentation is autogenerated from the code comments, but, just in case, I included the documentation for the new callback both in the code and the markdown documentation.

Also, I moved the Impl_Frame_3D_ClearColor() (or CustomBackground) call to be just before RenderGui in CreateFramesAndRender(). Otherwise the Gui is delayed by 1 frame compared to the background.

pthom commented 7 months ago

Hello,

Thanks a lot for your contribution! It was perfect, so I merged it.

I wasn't sure whether the markdown documentation is autogenerated from the code comments

Yes, it is. See tools/doc/process_md_docs.py. It is called automatically if you invoke cmake with -DHELLOIMGUI_BUILD_DOCS=ON

Since it was worthy of a demo + documentation I added a demo: see https://github.com/pthom/hello_imgui/commit/a7afb9eab293cf09d4d9641fc7acd36b3a5186ab

Thanks again!