From 16760b0764172f5beec1d7050839cc52105964f9 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 23 Aug 2023 10:11:05 +0200 Subject: [PATCH] Updated Getting Started (markdown) --- Getting-Started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Getting-Started.md b/Getting-Started.md index 7412230..c0ed53b 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -73,7 +73,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: 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()`. @@ -125,7 +125,7 @@ Add to your WndProc handler: extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) return true; -(Your code process Windows messages.) +// (Your code process Win32 messages) ``` Add to Shutdown: ```cpp