forked from mirrors/principia
Use Imgui dialog backend for the web version
This commit is contained in:
parent
c55e5fff76
commit
faba0b247e
2 changed files with 6 additions and 2 deletions
|
|
@ -56,7 +56,11 @@ else()
|
|||
set(SCREENSHOT_BUILD FALSE)
|
||||
endif()
|
||||
|
||||
option(BACKEND_IMGUI "Enable incomplete Dear Imgui dialog backend (Experimental)" FALSE)
|
||||
if(EMSCRIPTEN)
|
||||
set(BACKEND_IMGUI TRUE)
|
||||
else()
|
||||
option(BACKEND_IMGUI "Enable incomplete Dear Imgui dialog backend (Experimental)" FALSE)
|
||||
endif()
|
||||
|
||||
set(TMS_FORMFACTOR "PC")
|
||||
if(WIN32)
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ void ui::open_url(const char *url)
|
|||
void ui::render(){};
|
||||
#endif
|
||||
|
||||
#if defined(NO_UI) || defined(TMS_BACKEND_EMSCRIPTEN)
|
||||
#if defined(NO_UI)
|
||||
|
||||
int prompt_is_open = 0;
|
||||
void ui::init(){};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue