{"action":"created","issue":{"url":"https://api.github.com/repos/go-gl/gl/issues/28","labels_url":"https://api.github.com/repos/go-gl/gl/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/go-gl/gl/issues/28/comments","events_url":"https://api.github.com/repos/go-gl/gl/issues/28/events","html_url":"https://github.com/go-gl/gl/issues/28","id":104181177,"number":28,"title":"example of glMapBuffer?","user":{"login":"Triangle345","id":4261822,"avatar_url":"https://avatars.githubusercontent.com/u/4261822?v=3","gravatar_id":"","url":"https://api.github.com/users/Triangle345","html_url":"https://github.com/Triangle345","followers_url":"https://api.github.com/users/Triangle345/followers","following_url":"https://api.github.com/users/Triangle345/following{/other_user}","gists_url":"https://api.github.com/users/Triangle345/gists{/gist_id}","starred_url":"https://api.github.com/users/Triangle345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Triangle345/subscriptions","organizations_url":"https://api.github.com/users/Triangle345/orgs","repos_url":"https://api.github.com/users/Triangle345/repos","events_url":"https://api.github.com/users/Triangle345/events{/privacy}","received_events_url":"https://api.github.com/users/Triangle345/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-gl/gl/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T04:05:50Z","updated_at":"2015-09-01T19:16:53Z","closed_at":null,"body":"I was wondering if someone can give an example of glMapBuffer:\r\n\r\nhttps://www.opengl.org/sdk/docs/man/html/glMapBuffer.xhtml\r\n\r\nAs this returns an \"Unsafe pointer\". I was wondering how one would go copying a slice into a memory mapped vbo or something?"},"comment":{"url":"https://api.github.com/repos/go-gl/gl/issues/comments/136831935","html_url":"https://github.com/go-gl/gl/issues/28#issuecomment-136831935","issue_url":"https://api.github.com/repos/go-gl/gl/issues/28","id":136831935,"user":{"login":"thinkofdeath","id":774399,"avatar_url":"https://avatars.githubusercontent.com/u/774399?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkofdeath","html_url":"https://github.com/thinkofdeath","followers_url":"https://api.github.com/users/thinkofdeath/followers","following_url":"https://api.github.com/users/thinkofdeath/following{/other_user}","gists_url":"https://api.github.com/users/thinkofdeath/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkofdeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkofdeath/subscriptions","organizations_url":"https://api.github.com/users/thinkofdeath/orgs","repos_url":"https://api.github.com/users/thinkofdeath/repos","events_url":"https://api.github.com/users/thinkofdeath/events{/privacy}","received_events_url":"https://api.github.com/users/thinkofdeath/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T19:16:53Z","updated_at":"2015-09-01T19:16:53Z","body":"I've wrapped the call with this https://github.com/thinkofdeath/steven/blob/master/render/gl/buffer.go#L93-L109 in my code so it returns a byte slice but it does require you to know the size of the returned buffer."}}