{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1318","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1318/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1318/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1318","id":90734188,"number":1318,"title":"Refactor GL buffer generation","user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-24T17:06:10Z","updated_at":"2015-06-25T14:54:37Z","closed_at":null,"body":"GL buffer generation could be more straightforward. The logic is currently split between the `*_bucket.js`, `draw_*.js`, `*_vertex_buffer.js`, `buffer.js`, `painter.js` and other files. A single parameterized buffer utility could probably handle all use cases. "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/115283790","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1318#issuecomment-115283790","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1318","id":115283790,"user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T14:54:36Z","updated_at":"2015-06-25T14:54:36Z","body":"Still working on the exact API here, but I'm thinking it would be something like\r\n```javascript\r\nvar CircleBuffer = createBufferClass(...);\r\nvar buffer = new CircleBuffer(declarations, features);\r\nbuffer.bind(gl);\r\n```"}}