{"action":"created","issue":{"url":"https://api.github.com/repos/boyanio/angular-wasm/issues/1","repository_url":"https://api.github.com/repos/boyanio/angular-wasm","labels_url":"https://api.github.com/repos/boyanio/angular-wasm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/boyanio/angular-wasm/issues/1/comments","events_url":"https://api.github.com/repos/boyanio/angular-wasm/issues/1/events","html_url":"https://github.com/boyanio/angular-wasm/issues/1","id":377159698,"node_id":"MDU6SXNzdWUzNzcxNTk2OTg=","number":1,"title":"OpenGL texture binding to HTML canvas","user":{"login":"zivsha","id":22654243,"node_id":"MDQ6VXNlcjIyNjU0MjQz","avatar_url":"https://avatars3.githubusercontent.com/u/22654243?v=4","gravatar_id":"","url":"https://api.github.com/users/zivsha","html_url":"https://github.com/zivsha","followers_url":"https://api.github.com/users/zivsha/followers","following_url":"https://api.github.com/users/zivsha/following{/other_user}","gists_url":"https://api.github.com/users/zivsha/gists{/gist_id}","starred_url":"https://api.github.com/users/zivsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zivsha/subscriptions","organizations_url":"https://api.github.com/users/zivsha/orgs","repos_url":"https://api.github.com/users/zivsha/repos","events_url":"https://api.github.com/users/zivsha/events{/privacy}","received_events_url":"https://api.github.com/users/zivsha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-04T14:45:28Z","updated_at":"2018-11-05T12:48:24Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nAwesome project, worked out of the box! (only issue I have is that \"Home\" routing does not work)\r\n\r\nI'm new to WebAssemblies (and to be honest, to Angular as well) but have a fairly good understanding of how things work and bind together (for both frameworks).\r\n\r\nI'm trying to understand how the `3d-cube` example works, but I can't figure out a few things:\r\n\r\n1. How is `main(argc, argv)` being invoked? \r\n    After writing the above question I paused writing and started digging a bit more to figure this one on my own, so it would be nice to get a confirmation:\r\n\r\n    > Each of the objects extend `EmWasmComponent` which calls `instantiateJs` to creates a `script` element in the HTML document which reference the path to the JS file that was created by `emcc`. This JS code invokes `main` \r\n\r\n2. How is the `canvas` of the 3d-cube bound to OpenGL's texture?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/boyanio/angular-wasm/issues/comments/435861963","html_url":"https://github.com/boyanio/angular-wasm/issues/1#issuecomment-435861963","issue_url":"https://api.github.com/repos/boyanio/angular-wasm/issues/1","id":435861963,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTg2MTk2Mw==","user":{"login":"boyanio","id":980463,"node_id":"MDQ6VXNlcjk4MDQ2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/980463?v=4","gravatar_id":"","url":"https://api.github.com/users/boyanio","html_url":"https://github.com/boyanio","followers_url":"https://api.github.com/users/boyanio/followers","following_url":"https://api.github.com/users/boyanio/following{/other_user}","gists_url":"https://api.github.com/users/boyanio/gists{/gist_id}","starred_url":"https://api.github.com/users/boyanio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyanio/subscriptions","organizations_url":"https://api.github.com/users/boyanio/orgs","repos_url":"https://api.github.com/users/boyanio/repos","events_url":"https://api.github.com/users/boyanio/events{/privacy}","received_events_url":"https://api.github.com/users/boyanio/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T12:48:24Z","updated_at":"2018-11-05T12:48:24Z","author_association":"OWNER","body":"There are different OpenGL versions. There is no 1:1 mapping between OpenGL and WebGL, you can read about Emscripten's support for OpenGL [here](https://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/OpenGL-support.html).\r\n\r\nThe code for the 3D cube is not written by me, I have found it somewhere on the web and I have modified it a bit to compile it to WebAssembly. On the web it makes no sense to manipulate windows, so what happens in reality is you manipulate the canvas. You can see the source code for `glutInitWindowSize` [here](https://github.com/kripken/emscripten/blob/df84567d01fb9243b8a79f77601cda6f8f0783fc/src/library_glut.js#L402)."}}
{"actor":{"display_login":"boyanio"}}