{"action":"created","issue":{"url":"https://api.github.com/repos/vispy/vispy.js/issues/14","labels_url":"https://api.github.com/repos/vispy/vispy.js/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/vispy/vispy.js/issues/14/comments","events_url":"https://api.github.com/repos/vispy/vispy.js/issues/14/events","html_url":"https://github.com/vispy/vispy.js/pull/14","id":86989362,"number":14,"title":"Add new gloo.js with an API","user":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T14:28:50Z","updated_at":"2015-06-12T13:49:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vispy/vispy.js/pulls/14","html_url":"https://github.com/vispy/vispy.js/pull/14","diff_url":"https://github.com/vispy/vispy.js/pull/14.diff","patch_url":"https://github.com/vispy/vispy.js/pull/14.patch"},"body":"See issue #1 \r\n\r\nThis adds a gloo2.js, providing a gloo JS API, on top of which we can write the GLIR parser. The code currently does not support FBO's. \r\n\r\nThe JS code is created by taking the glir.py, and modifying it slightly so it is more tuned for webgl, accepted by PyScript, which translates the code to JS. I'm not sure if this is the best way to do it, but it seemed the fastest way to get the API up, and it works! We could decide to just take the gloo.js from here and ditch the Python version.\r\n\r\nRight now, to compile the gloo2.js, you need to install Flexx (https://github.com/zoofio/flexx), which is in itself very much a WIP, but the PyScript module is quite complete and well-tested."},"comment":{"url":"https://api.github.com/repos/vispy/vispy.js/issues/comments/111498290","html_url":"https://github.com/vispy/vispy.js/pull/14#issuecomment-111498290","issue_url":"https://api.github.com/repos/vispy/vispy.js/issues/14","id":111498290,"user":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T13:49:46Z","updated_at":"2015-06-12T13:49:46Z","body":">  I find it dangerous to have both a source and autogenerated target in the same repo...\r\n\r\nthere's a message at the top: *Do not edit, autogenerated by flexx.pyscript*  although this is not always foolproof...\r\n\r\n> do you plan to work on FBO in this PR (or a future PR)? \r\n\r\nIt should not cost too much time to include that too. But I am not sure how to test it; we'd need a JS example that uses FBO's, or we test it after writing the glir interpreter on top ...\r\n\r\n> same question for the glir interpreter?\r\n\r\nI would not mind if someone else did that; I have no use for it right now. Should be straightforward.\r\n\r\n> is it conceivable to use exactly the same gloo2.py in the main vispy branch?\r\n\r\nI considered this (how cool would that be!) but I changed the code to take subtle webgl stuff into account.\r\n\r\n\r\n\r\n\r\n\r\n"}}