dslmeinte / imgui

IMGUI experiments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libimgui

“The GUI as stdout”

“Structure of the code == structure of the GUI”

libimgui is a simple, tiny library for programming immediate mode GUIs in the browser. A libimgui app is a straight-line program that (conceptually) just “writes” out the GUI to the screen. Ordinary functions can be used to build reusable component abstractions. Components may have local (view) state which is automatically restored upon re-rendering.

Building

libimgui uses NPM and browserify. Perform the following actions in your favourite shell:

[sudo] npm install -g browserify
git clone https://github.com/dslmeinte/imgui.git
cd imgui/libimgui
npm install
cd ../examples
browserify --debug examples.js --standalone examplesApp > bundle.js

(You might have to sudo the first line.) After this you should be able to "run" examples/index.html.

The magic browserify incantation for all example apps is: browserify --debug <JS-file-name> --standalone <app-name> > bundle.js

About

IMGUI experiments


Languages

Language:JavaScript 97.8%Language:HTML 2.0%Language:Shell 0.1%Language:Ruby 0.1%Language:Makefile 0.0%