Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.39 KB

Studies on Ocornut ImGUI Demo adapted to WebAssembly

Based on @github/arcanosam studies and coding about @github/ocornut ImGUI demo in WebAssembly.

@github/arcanosam used to have a working stuff, but it wasn't present in the latest commits. It took some effort to get back to working version.

@github/OCTAGRAM wishes to aleady have own Objective-C compiler and GNUStep-on-Wasm port, but there is so much left to do on this way, and ImGUI is a way to have at least some Wasm GUI for now.

  • Original demo
    • If you remove the imgui.html from the above URL, you could list the files on ocornut_demo path
    • There, there are the final product which is the html, mem file and js
    • But there are the source that generated the page

Requirements

Usage

  • Open console/prompt command
    • Run: source [[path to emsdk folder]]/emsdk_env.sh
  • Clone this repo
  • Access repo folder
  • Run ./app/build.sh
    • Don't forget permissions on build script
      • chmod +x ./app/build.sh
    • At end, will be generated all files on ./app/html folder
    • Open up html file on your browser (Chrome or Firefox)
      • Both browsers must be updated for having WebAssembly enabled by default