From 6c3235085e3330e247d032c41579939391019801 Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 26 Mar 2020 14:29:54 +0100 Subject: [PATCH] Updated Developer Tips (markdown) --- Developer-Tips.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Developer-Tips.md b/Developer-Tips.md index 062888f..802d87d 100644 --- a/Developer-Tips.md +++ b/Developer-Tips.md @@ -1,5 +1,11 @@ If you are working on Dear ImGui codebase: +### Metrics +The Metrics window exposes lots of information about the library state. + +### Visual debugging +You can use drawlist primitives on the foreground drawlist, e.g. `GetForegroundDrawList()->AddRectFilled(...)` to bypass clipping of the current window's drawlist. + ### Logging You can use the `IMGUI_DEBUG_LOG` macro (declared in `imgui_internal.h`) to easily print text to the console while including the current frame counter, which is very often useful in log.