mention demo_ui
as an example in docs
#72303
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
demo_ui
as an example in docsDescribe the solution
Describe alternatives you've considered
Testing
Compiled, demo works.
Compiled the docs locally, HTML looks better locally (lists work).
Additional context
Today I wanted to make a ImGui window. According to docs, I looked at
input_context.cpp
, but didn't manage to get a window running from nothing. So I copiedinput_context.cpp
andinput_context.h
and cut it down from 2300 lines (.h and .cpp combined) to about 550 lines. But some basic features weren't working. I recently worked withinput_context.cpp
, so it probably would take even more time for somebody else.Then, I discovered #72171, got working version pretty fast. The template has only 67 lines, which is amazing. I decided to share this amazingness with whoever reads the docs next. Now my file is like 200 lines and works better!