{"action":"created","issue":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/79","repository_url":"https://api.github.com/repos/vurtun/nuklear","labels_url":"https://api.github.com/repos/vurtun/nuklear/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/vurtun/nuklear/issues/79/comments","events_url":"https://api.github.com/repos/vurtun/nuklear/issues/79/events","html_url":"https://github.com/vurtun/nuklear/issues/79","id":149597024,"number":79,"title":"Use Nuklear for web - through canvas","user":{"login":"dumblob","id":2451044,"avatar_url":"https://avatars.githubusercontent.com/u/2451044?v=3","gravatar_id":"","url":"https://api.github.com/users/dumblob","html_url":"https://github.com/dumblob","followers_url":"https://api.github.com/users/dumblob/followers","following_url":"https://api.github.com/users/dumblob/following{/other_user}","gists_url":"https://api.github.com/users/dumblob/gists{/gist_id}","starred_url":"https://api.github.com/users/dumblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumblob/subscriptions","organizations_url":"https://api.github.com/users/dumblob/orgs","repos_url":"https://api.github.com/users/dumblob/repos","events_url":"https://api.github.com/users/dumblob/events{/privacy}","received_events_url":"https://api.github.com/users/dumblob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vurtun/nuklear/labels/discussion","name":"discussion","color":"0052cc"},{"url":"https://api.github.com/repos/vurtun/nuklear/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T22:04:36Z","updated_at":"2016-04-20T20:54:03Z","closed_at":null,"body":"Nowadays, web sites are not any more documents, but rather pretty complex UI applications. On the other hand, it's extremely difficult to get it working on all screen sizes and DPIs. With Nuklear it would be piece of cake.\r\n\r\nI was thinking about compiling Nuklear to JS using [Emscripten](https://kripken.github.io/emscripten-site/docs/introducing_emscripten/about_emscripten.html ) and drawing everything immediately to HTML5 canvas. The only question is performance. But I'm pretty certain, it'll be sufficient and we'll finally have a proper tool for building UIs on the screwed web. Also for future, it'll be (significantly?) more performant thanks to [WebAssembly](https://webassembly.github.io/), which allows highly optimized compilation from C.\r\n\r\nAnyone has any hands-on experience?"},"comment":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/comments/212602461","html_url":"https://github.com/vurtun/nuklear/issues/79#issuecomment-212602461","issue_url":"https://api.github.com/repos/vurtun/nuklear/issues/79","id":212602461,"user":{"login":"mmozeiko","id":1665010,"avatar_url":"https://avatars.githubusercontent.com/u/1665010?v=3","gravatar_id":"","url":"https://api.github.com/users/mmozeiko","html_url":"https://github.com/mmozeiko","followers_url":"https://api.github.com/users/mmozeiko/followers","following_url":"https://api.github.com/users/mmozeiko/following{/other_user}","gists_url":"https://api.github.com/users/mmozeiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mmozeiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmozeiko/subscriptions","organizations_url":"https://api.github.com/users/mmozeiko/orgs","repos_url":"https://api.github.com/users/mmozeiko/repos","events_url":"https://api.github.com/users/mmozeiko/events{/privacy}","received_events_url":"https://api.github.com/users/mmozeiko/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T20:54:03Z","updated_at":"2016-04-20T20:54:03Z","body":"I haven't tried, but dear imgui has pull request with example for Emscripten (using SDL2): https://github.com/ocornut/imgui/pull/336\r\nYou could try porting source to work with nuklear."}}