{"action":"created","issue":{"url":"https://api.github.com/repos/wjakob/nanogui/issues/153","repository_url":"https://api.github.com/repos/wjakob/nanogui","labels_url":"https://api.github.com/repos/wjakob/nanogui/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/wjakob/nanogui/issues/153/comments","events_url":"https://api.github.com/repos/wjakob/nanogui/issues/153/events","html_url":"https://github.com/wjakob/nanogui/pull/153","id":184563098,"number":153,"title":"GLCanvas widget","user":{"login":"fairlight1337","id":1122132,"avatar_url":"https://avatars.githubusercontent.com/u/1122132?v=3","gravatar_id":"","url":"https://api.github.com/users/fairlight1337","html_url":"https://github.com/fairlight1337","followers_url":"https://api.github.com/users/fairlight1337/followers","following_url":"https://api.github.com/users/fairlight1337/following{/other_user}","gists_url":"https://api.github.com/users/fairlight1337/gists{/gist_id}","starred_url":"https://api.github.com/users/fairlight1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fairlight1337/subscriptions","organizations_url":"https://api.github.com/users/fairlight1337/orgs","repos_url":"https://api.github.com/users/fairlight1337/repos","events_url":"https://api.github.com/users/fairlight1337/events{/privacy}","received_events_url":"https://api.github.com/users/fairlight1337/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2016-10-21T20:34:35Z","updated_at":"2016-10-27T06:01:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wjakob/nanogui/pulls/153","html_url":"https://github.com/wjakob/nanogui/pull/153","diff_url":"https://github.com/wjakob/nanogui/pull/153.diff","patch_url":"https://github.com/wjakob/nanogui/pull/153.patch"},"body":"Added a widget for displaying an OpenGL scene within in, separately from the main GLFW window.\r\n\r\n![selection_081](https://cloud.githubusercontent.com/assets/1122132/19610659/eb69456c-97dd-11e6-8fe4-a80423f40032.png)\r\n\r\nIf there is anything crucial missing, I'm happy to add it. Serialization should work and with time, I'll add a couple more options (like drawing the border or not and setting callback functions for click, drag, release, etc.).\r\n\r\nThe widget itself right now just allows a callback (lambda) to be defined where the actual GL drawing code resides. No configuration effort beyond that, except maybe the background color.\r\n\r\nResizing does not yet change the GL texture; I didn't find any best practice in the other widgets on how to do that yet. This is a must though and I'll add it later on.\r\n\r\nI also added `example4` which just shows this widget in action. Could be added to one of the other examples as well instead, but they seemed a bit crowded already."},"comment":{"url":"https://api.github.com/repos/wjakob/nanogui/issues/comments/256553925","html_url":"https://github.com/wjakob/nanogui/pull/153#issuecomment-256553925","issue_url":"https://api.github.com/repos/wjakob/nanogui/issues/153","id":256553925,"user":{"login":"wjakob","id":1203629,"avatar_url":"https://avatars.githubusercontent.com/u/1203629?v=3","gravatar_id":"","url":"https://api.github.com/users/wjakob","html_url":"https://github.com/wjakob","followers_url":"https://api.github.com/users/wjakob/followers","following_url":"https://api.github.com/users/wjakob/following{/other_user}","gists_url":"https://api.github.com/users/wjakob/gists{/gist_id}","starred_url":"https://api.github.com/users/wjakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjakob/subscriptions","organizations_url":"https://api.github.com/users/wjakob/orgs","repos_url":"https://api.github.com/users/wjakob/repos","events_url":"https://api.github.com/users/wjakob/events{/privacy}","received_events_url":"https://api.github.com/users/wjakob/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T06:01:01Z","updated_at":"2016-10-27T06:01:01Z","body":"Beautiful -- thanks for making those changes, it's a big improvement. Do you want me to merge this now or wait for the Arcball change?"}}
{"actor":{"display_login":"wjakob"}}