You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Emil Ernerfeldt e398668f96 Add support for usize sliders 6 years ago
docs Update wasm 6 years ago
emigui Add support for usize sliders 6 years ago
emigui_wasm Refactor: rename Frame to Mesh 6 years ago
example Refactor: rename Frame to Mesh 6 years ago
.gitignore No typescript. Just one index.html + wasm. 6 years ago
Cargo.lock Update wasm 6 years ago
Cargo.toml Split example app from emigui_wasm 6 years ago
README.md Update readme 6 years ago
TODO.md Code cleanup: allow None mouse_pos + clippy fixes 6 years ago
build.sh Minor improvements 6 years ago
build_and_run.sh Initial commit: Closed loop of TS->Rust->TS 6 years ago
lint.sh No typescript. Just one index.html + wasm. 6 years ago

README.md

Emigui

Experimental, Modularized Immediate mode Graphical User Interface

A GUI library written in Rust, compiled to WASM. Inspired by game tech.

How it works:

Loop:

  • Gather input: mouse, touches, screen size, ...
  • Run app code (Immediate Mode GUI)
  • Output is a triangle mesh
  • Render with WebGL

Demos

Emigui feature demo

Hobogo: A small game using Emigui

State

More of a tech demo than anything else. Features:

  • Buttons
  • Sliders
  • Text
  • Horizontal or vertical layout
  • Columns
  • Collapsible headers

Inspiration

Dear ImGui

Credits / Licenses

ProggyClean.ttf, Copyright (c) 2004, 2005 Tristan Grimmer. MIT License. http://www.proggyfonts.net/ Roboto-Regular.ttf: Apache License, Version 2.0