EXAMPLES.md (imgui-1.86) | : | EXAMPLES.md (imgui-1.87) | ||
---|---|---|---|---|
skipping to change at line 74 | skipping to change at line 74 | |||
// Shutdown | // Shutdown | |||
ImGui_ImplDX11_Shutdown(); | ImGui_ImplDX11_Shutdown(); | |||
ImGui_ImplWin32_Shutdown(); | ImGui_ImplWin32_Shutdown(); | |||
ImGui::DestroyContext(); | ImGui::DestroyContext(); | |||
Please read 'PROGRAMMER GUIDE' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. | Please read 'PROGRAMMER GUIDE' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. | |||
Please read the comments and instruction at the top of each file. | Please read the comments and instruction at the top of each file. | |||
Please read FAQ at http://www.dearimgui.org/faq | Please read FAQ at http://www.dearimgui.org/faq | |||
If you are using of the backend provided here, you can add the backends/imgui_im pl_xxxx(.cpp,.h) | If you are using any of the backends provided here, you can add the backends/img ui_impl_xxxx(.cpp,.h) | |||
files to your project and use as-in. Each imgui_impl_xxxx.cpp file comes with it s own individual | files to your project and use as-in. Each imgui_impl_xxxx.cpp file comes with it s own individual | |||
Changelog, so if you want to update them later it will be easier to catch up wit h what changed. | Changelog, so if you want to update them later it will be easier to catch up wit h what changed. | |||
### Examples Applications | ### Examples Applications | |||
[example_allegro5/](https://github.com/ocornut/imgui/blob/master/examples/exampl e_allegro5/) <BR> | [example_allegro5/](https://github.com/ocornut/imgui/blob/master/examples/exampl e_allegro5/) <BR> | |||
Allegro 5 example. <BR> | Allegro 5 example. <BR> | |||
= main.cpp + imgui_impl_allegro5.cpp | = main.cpp + imgui_impl_allegro5.cpp | |||
[example_android_opengl3/](https://github.com/ocornut/imgui/blob/master/examples /example_android_opengl3/) <BR> | [example_android_opengl3/](https://github.com/ocornut/imgui/blob/master/examples /example_android_opengl3/) <BR> | |||
skipping to change at line 222 | skipping to change at line 222 | |||
Please let us know if they don't work with your setup! | Please let us know if they don't work with your setup! | |||
You can probably just import the imgui_impl_xxx.cpp/.h files into your own codeb ase or compile those | You can probably just import the imgui_impl_xxx.cpp/.h files into your own codeb ase or compile those | |||
directly with a command-line compiler. | directly with a command-line compiler. | |||
If you are interested in using Cmake to build and links examples, see: | If you are interested in using Cmake to build and links examples, see: | |||
https://github.com/ocornut/imgui/pull/1713 and https://github.com/ocornut/imgu i/pull/3027 | https://github.com/ocornut/imgui/pull/1713 and https://github.com/ocornut/imgu i/pull/3027 | |||
**About mouse cursor latency** | **About mouse cursor latency** | |||
Dear ImGui has no particular extra lag for most behaviors, | Dear ImGui has no particular extra lag for most behaviors, | |||
e.g. the value of 'io.MousePos' provided at the time of NewFrame() will result i n windows being moved | e.g. the last value passed to 'io.AddMousePosEvent()' before NewFrame() will res ult in windows being moved | |||
to the right spot at the time of EndFrame()/Render(). At 60 FPS your experience should be pleasant. | to the right spot at the time of EndFrame()/Render(). At 60 FPS your experience should be pleasant. | |||
However, consider that OS mouse cursors are typically drawn through a very speci fic hardware accelerated | However, consider that OS mouse cursors are typically drawn through a very speci fic hardware accelerated | |||
path and will feel smoother than the majority of contents rendered via regular g raphics API (including, | path and will feel smoother than the majority of contents rendered via regular g raphics API (including, | |||
but not limited to Dear ImGui windows). Because UI rendering and interaction hap pens on the same plane | but not limited to Dear ImGui windows). Because UI rendering and interaction hap pens on the same plane | |||
as the mouse, that disconnect may be jarring to particularly sensitive users. | as the mouse, that disconnect may be jarring to particularly sensitive users. | |||
You may experiment with enabling the io.MouseDrawCursor flag to request Dear ImG ui to draw a mouse cursor | You may experiment with enabling the io.MouseDrawCursor flag to request Dear ImG ui to draw a mouse cursor | |||
using the regular graphics API, to help you visualize the difference between a " hardware" cursor and a | using the regular graphics API, to help you visualize the difference between a " hardware" cursor and a | |||
regularly rendered software cursor. | regularly rendered software cursor. | |||
However, rendering a mouse cursor at 60 FPS will feel sluggish so you likely won 't want to enable that at | However, rendering a mouse cursor at 60 FPS will feel sluggish so you likely won 't want to enable that at | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |