mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-27 16:29:02 +08:00
Amend section 5 (#7953)
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()`.
|
||||
|
Loading…
Reference in New Issue
Block a user