{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/163","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/163/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/163/events","html_url":"https://github.com/bkaradzic/bgfx/issues/163","id":44433839,"number":163,"title":"Occlusion Query Interface","user":{"login":"baeddelbot","id":8034235,"avatar_url":"https://avatars.githubusercontent.com/u/8034235?v=3","gravatar_id":"","url":"https://api.github.com/users/baeddelbot","html_url":"https://github.com/baeddelbot","followers_url":"https://api.github.com/users/baeddelbot/followers","following_url":"https://api.github.com/users/baeddelbot/following{/other_user}","gists_url":"https://api.github.com/users/baeddelbot/gists{/gist_id}","starred_url":"https://api.github.com/users/baeddelbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baeddelbot/subscriptions","organizations_url":"https://api.github.com/users/baeddelbot/orgs","repos_url":"https://api.github.com/users/baeddelbot/repos","events_url":"https://api.github.com/users/baeddelbot/events{/privacy}","received_events_url":"https://api.github.com/users/baeddelbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bkaradzic/bgfx/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-09-30T12:19:29Z","updated_at":"2015-02-16T10:10:11Z","closed_at":null,"body":"The interface I'd like to see would look something like the following;\r\n\r\nQueryHandle createQuery();\r\nvoid query(uint8_t,QueryHandle); //Utilizes vertex/index/decl attributes set within the DrawItem struct.\r\nuint32_t getQuerySamplesPassed(QueryHandle);\r\nvoid destroyQuery(QueryHandle);"},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/74485322","html_url":"https://github.com/bkaradzic/bgfx/issues/163#issuecomment-74485322","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/163","id":74485322,"user":{"login":"baeddelbot","id":8034235,"avatar_url":"https://avatars.githubusercontent.com/u/8034235?v=3","gravatar_id":"","url":"https://api.github.com/users/baeddelbot","html_url":"https://github.com/baeddelbot","followers_url":"https://api.github.com/users/baeddelbot/followers","following_url":"https://api.github.com/users/baeddelbot/following{/other_user}","gists_url":"https://api.github.com/users/baeddelbot/gists{/gist_id}","starred_url":"https://api.github.com/users/baeddelbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baeddelbot/subscriptions","organizations_url":"https://api.github.com/users/baeddelbot/orgs","repos_url":"https://api.github.com/users/baeddelbot/repos","events_url":"https://api.github.com/users/baeddelbot/events{/privacy}","received_events_url":"https://api.github.com/users/baeddelbot/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T10:10:11Z","updated_at":"2015-02-16T10:10:11Z","body":"For my use case I would render a low res approximation of occluders and use the query interface for fine grained culling of expensive effects such as rendering particle systems or prop meshes. The clearest win for it is in my outdoor/terrain scenes."}}