From b959c7448801040e421110b8700d0be135962a74 Mon Sep 17 00:00:00 2001 From: omar Date: Sun, 22 Nov 2015 23:12:50 +0000 Subject: [PATCH] Update README.md - faq --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index aedb623c1..e5903ff15 100644 --- a/README.md +++ b/README.md @@ -81,23 +81,24 @@ Frequently Asked Question (FAQ) Where is the documentation? -- The documentation is at the top of imgui.cpp + effectively imgui.h. +- The documentation is at the top of imgui.cpp + effectively imgui.h. - Example code is in imgui_demo.cpp and particularly the ImGui::ShowTestWindow() function. It covers most features of ImGui so you can read the code and call the function itself to see its output. - Standalone example applications using e.g. OpenGL/DirectX are provided in the examples/ folder. - It obviously needs better documentation! Consider helping or becoming a [Patron](http://www.patreon.com/imgui) to promote this effort. +How do I update to a newer version of ImGui? +
Can I have multiple widgets with the same label? Can I have widget without a label? (Yes) +
I integrated ImGui in my engine and the text or lines are blurry.. +
I integrated ImGui in my engine and some elements are disappearing when I move windows around.. +
How can I load a different font than the default? +
How can I load multiple fonts? + +See the FAQ in imgui.cpp for answers. + How do you use ImGui on a platform that may not have a mouse or keyboard? I recommend using [Synergy](http://synergy-project.org) ([sources](https://github.com/synergy/synergy)). In particular, the _src/micro/uSynergy.c_ file contains a small client that you can use on any platform to connect to your host PC. You can seamlessly use your PC input devices from a video game console or a tablet. ImGui allows to increase the hit box of widgets (via the _TouchPadding_ setting) to accommodate a little for the lack of precision of touch inputs, but it is recommended you use a mouse to allow optimising for screen real-estate. -I integrated ImGui in my engine and the text or lines are blurry.. - -In your Render function, try translating your projection matrix by (0.5f,0.5f) or (0.375f,0.375f). Also make sure your orthographic projection matrix and io.DisplaySize matches your actual framebuffer dimension. - -I integrated ImGui in my engine and some elements are disappearing when I move windows around.. - -Most likely you are mishandling the clipping rectangles in your render function. Rectangles provided by ImGui are defined as (x1,y1,x2,y2) and NOT as (x1,y1,width,height). - Can you create elaborate/serious tools with ImGui? Yes. I have written data browsers, debuggers, profilers and all sort of non-trivial tools with the library. In my experience the simplicity of the API is very empowering. Your UI runs close to your live data. Make the tools always-on and everybody in the team will be inclined to create new tools (as opposed to more "offline" UI toolkits where only a fraction of your team effectively creates tools).