mirror of
https://github.com/Drezil/imgui.git
synced 2025-03-07 13:52:42 +00:00
Update README.md
This commit is contained in:
parent
1adeaed000
commit
f44a7115ca
30
README.md
30
README.md
@ -45,7 +45,6 @@ if (ImGui::Button("Save"))
|
|||||||
ImGui::InputText("string", buf, IM_ARRAYSIZE(buf));
|
ImGui::InputText("string", buf, IM_ARRAYSIZE(buf));
|
||||||
ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
|
ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
<br>_(settings: Dark style (left), Light style (right) / Font: Roboto-Medium, 16px / Rounding: 5)_
|
<br>_(settings: Dark style (left), Light style (right) / Font: Roboto-Medium, 16px / Rounding: 5)_
|
||||||
|
|
||||||
@ -80,7 +79,6 @@ for (int n = 0; n < 50; n++)
|
|||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
<br>_(Gif compression added dithering to the color wheel)_
|
<br>_(Gif compression added dithering to the color wheel)_
|
||||||
|
|
||||||
@ -160,27 +158,35 @@ User screenshots:
|
|||||||
<br>Also see the [Mega screenshots](https://github.com/ocornut/imgui/issues/1273) for an idea of the available features.
|
<br>Also see the [Mega screenshots](https://github.com/ocornut/imgui/issues/1273) for an idea of the available features.
|
||||||
|
|
||||||
Various tools
|
Various tools
|
||||||
<br>[](https://cloud.githubusercontent.com/assets/8225057/20628927/33e14cac-b329-11e6-80f6-9524e93b048a.png)
|
[](https://cloud.githubusercontent.com/assets/8225057/20628927/33e14cac-b329-11e6-80f6-9524e93b048a.png)
|
||||||
|
|
||||||
<br>[](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/editor_white.png)
|
[](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/editor_white.png)
|
||||||
|
|
||||||
<br>
|

|
||||||
|
|
||||||
Custom profiler
|
Custom profiler
|
||||||
<br>[](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v148/profiler.png)
|
[](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v148/profiler.png)
|
||||||
|
|
||||||
Color Pickers
|
Color Pickers
|
||||||
<br>
|

|
||||||
|
|
||||||
Dear ImGui can load TTF/OTF fonts. UTF-8 is supported for text display and input. Here using Arial Unicode font to display Japanese. Initialize custom font with:
|
Dear ImGui can load TTF/OTF fonts. UTF-8 is supported for text display and input. Here using Arial Unicode font to display Japanese. Initialize custom font with:
|
||||||
```cpp
|
```cpp
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
|
io.Fonts->AddFontFromFileTTF("NotoSansCJKjp-Medium.otf", 20.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
|
||||||
|
|
||||||
// For Microsoft IME, pass your HWND to enable IME positioning:
|
|
||||||
io.ImeWindowHandle = my_hwnd;
|
|
||||||
```
|
```
|
||||||

|
```cpp
|
||||||
|
// C++ code
|
||||||
|
ImGui::Text(u8"こんにちは!テスト %d", 123);
|
||||||
|
if (ImGui::Button(u8"ロード"))
|
||||||
|
{
|
||||||
|
// do stuff
|
||||||
|
}
|
||||||
|
ImGui::InputText("string", buf, IM_ARRAYSIZE(buf));
|
||||||
|
ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
|
||||||
|
```
|
||||||
|

|
||||||
|
<br>_(settings: Dark style (left), Light style (right) / Font: NotoSansCJKjp-Medium, 20px / Rounding: 5)_
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user