mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-27 16:29:02 +08:00
Demo: added emscripten version. (#7915)
This commit is contained in:
parent
4832027eb6
commit
07be01767a
@ -116,6 +116,9 @@ Index of this file:
|
|||||||
#if !defined(_MSC_VER) || _MSC_VER >= 1800
|
#if !defined(_MSC_VER) || _MSC_VER >= 1800
|
||||||
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
|
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
#include <emscripten/version.h> // __EMSCRIPTEN_major__ etc.
|
||||||
|
#endif
|
||||||
|
|
||||||
// Visual Studio warnings
|
// Visual Studio warnings
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -7688,6 +7691,7 @@ void ImGui::ShowAboutWindow(bool* p_open)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
ImGui::Text("define: __EMSCRIPTEN__");
|
ImGui::Text("define: __EMSCRIPTEN__");
|
||||||
|
ImGui::Text("Emscripten: %d.%d.%d", __EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__);
|
||||||
#endif
|
#endif
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL");
|
ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL");
|
||||||
|
Loading…
Reference in New Issue
Block a user