Amend section 5 (#7953)

omar 2024-09-04 17:51:00 +02:00
parent cf3ba3e2f9
commit 0db00a798d

@ -76,7 +76,7 @@ After this list we will show the corresponding code.
- (2) Create Dear ImGui context with `ImGui::CreateContext()`.
- (3) Optionally set configuration flags, load fonts, setup style.
- (4) Initialize Platform and Rendering backends (e.g. `ImGui_ImplWin32_Init()` + `ImGui_ImplDX11_Init()`).
- (5) Start of main loop: call backends' `ImGui_ImplXXX_NewFrame()` functions + call `ImGui::NewFrame()`.
- (5) Start of main loop: poll events + call backends' `ImGui_ImplXXX_NewFrame()` functions + call `ImGui::NewFrame()`.
- (6) End of main loop: call `ImGui::Render()` + call Render function of Rendering backend (e.g. `ImGui_ImplDX11_Render()`).
- (7) Most backends require some extra steps to hook or forward events. (e.g. calling `ImGui_ImplWin32_WndProcHandler`)
- (8) Call backend shutdown functions and destroy Dear ImGui context with `ImGui::DestroyContext()`.