From 7ea9253c31bfd65c4f2c8ab9afbc7e620c1bb751 Mon Sep 17 00:00:00 2001 From: omar Date: Sun, 18 Jan 2015 12:56:59 +0000 Subject: [PATCH] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9f5cf6e73..77c90130c 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,14 @@ ImGui is designed to enable fast iteration and allow programmers to create "cont ImGui is particularly suited to integration in 3D applications, fullscreen applications, embedded applications, games, or any applications on consoles platforms where operating system features are non-standard. -ImGui is self-contained within 4 files that you can easily copy and compile into your application/engine: +ImGui is self-contained within 6 files that you can easily copy and compile into your application/engine: - imgui.cpp - imgui.h - imconfig.h (empty by default, user-editable) + - stb_rect_pack.h - stb_textedit.h + - stb_truetype.h Your code passes mouse/keyboard inputs and settings to ImGui (see example applications for more details). After ImGui is setup, you can use it like in this example: @@ -31,7 +33,7 @@ Gallery ![screenshot 3](/web/test_window_03.png?raw=true) ![screenshot 4](/web/test_window_04.png?raw=true) -UTF-8 is supported for text display and input. Here using M+ font to display Japanese: +ImGui can load TTF fonts. UTF-8 is supported for text display and input. Here using M+ font to display Japanese: ![utf-8 screenshot](/web/utf8_sample_01.png?raw=true) @@ -57,8 +59,7 @@ I recommend using [Synergy](http://synergy-project.org). With the uSynergy.c mic I integrated ImGui in my engine and the text or lines are blurry.. -- Try adjusting ImGui::GetIO().PixelCenterOffset to 0.0f or 0.5f. -- In your Render function, try translating your projection matrix by (0.5f,0.5f) or (0.375f,0.375f). +In your Render function, try translating your projection matrix by (0.5f,0.5f) or (0.375f,0.375f). Can you create elaborate/serious tools with ImGui? @@ -100,6 +101,7 @@ Credits Developed by [Omar Cornut](http://www.miracleworld.net) and every direct or indirect contributors to the GitHub. The early version of this library was developed with the support of [Media Molecule](http://www.mediamolecule.com) and first used internally on the game [Tearaway](http://tearaway.mediamolecule.com). Embeds [ProggyClean.ttf](http://upperbounds.net) font by Tristan Grimmer (MIT license). + Embeds [stb_textedit.h, stb_truetype.h, stb_rectpack.h](https://github.com/nothings/stb/) by Sean Barrett (public domain). Inspiration, feedback, and testing for early versions: Casey Muratori, Atman Binstock, Mikko Mononen, Emmanuel Briney, Stefan Kamoda, Anton Mikhailov, Matt Willis. And everybody posting feedback, questions and patches on the GitHub.