{"action":"created","issue":{"url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/779","labels_url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/779/comments","events_url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/779/events","html_url":"https://github.com/PistonDevelopers/graphics/issues/779","id":50939055,"number":779,"title":"Ideas about clipping","user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PistonDevelopers/graphics/labels/discussion","name":"discussion","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-04T08:11:44Z","updated_at":"2015-03-13T20:17:44Z","closed_at":"2015-03-13T20:17:44Z","body":"One idea is to create a meta back-end which you \"render\" to and inserts the triangles in a quad tree. Images will not be supported by this back-end, because it would use `()` (nil type) as texture.\r\n\r\nThen, we need another meta back-end which borrows a mutable to the graphics back-end and the clipping back-end. For each triangle, it looks up all triangles in the quad tree that might touch it and checks for overlap. If there is any overlap it clips the triangle such that only the part inside the clipping triangle is visible. There will be 0, 1 or 2 triangles that is sent further."},"comment":{"url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/comments/79338533","html_url":"https://github.com/PistonDevelopers/graphics/issues/779#issuecomment-79338533","issue_url":"https://api.github.com/repos/PistonDevelopers/graphics/issues/779","id":79338533,"user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T20:17:44Z","updated_at":"2015-03-13T20:17:44Z","body":"Will be handled through changing draw state or a clipping algorithm.\r\n\r\nClosing."}}