{"action":"closed","issue":{"url":"https://api.github.com/repos/ajstarks/openvg/issues/24","labels_url":"https://api.github.com/repos/ajstarks/openvg/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ajstarks/openvg/issues/24/comments","events_url":"https://api.github.com/repos/ajstarks/openvg/issues/24/events","html_url":"https://github.com/ajstarks/openvg/issues/24","id":57096621,"number":24,"title":"Scissoring support","user":{"login":"lobsangludd","id":7027375,"avatar_url":"https://avatars.githubusercontent.com/u/7027375?v=3","gravatar_id":"","url":"https://api.github.com/users/lobsangludd","html_url":"https://github.com/lobsangludd","followers_url":"https://api.github.com/users/lobsangludd/followers","following_url":"https://api.github.com/users/lobsangludd/following{/other_user}","gists_url":"https://api.github.com/users/lobsangludd/gists{/gist_id}","starred_url":"https://api.github.com/users/lobsangludd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobsangludd/subscriptions","organizations_url":"https://api.github.com/users/lobsangludd/orgs","repos_url":"https://api.github.com/users/lobsangludd/repos","events_url":"https://api.github.com/users/lobsangludd/events{/privacy}","received_events_url":"https://api.github.com/users/lobsangludd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-09T22:00:24Z","updated_at":"2015-02-11T02:43:44Z","closed_at":"2015-02-11T02:43:44Z","body":"I added two functions to my copy:\r\n\r\n`// LimitTo limits the drawing area to specified rectangle\r\nvoid LimitTo(VGint x, VGint y, VGint w, VGint h) {\r\n        vgSeti(VG_SCISSORING, VG_TRUE);\r\n        VGint coords[4] = { x, y, w, h };\r\n        vgSetiv(VG_SCISSOR_RECTS, 4, coords);\r\n}\r\n\r\n// Unlimit stops limiting drawing area to specified rectangle\r\nvoid Unlimit() {\r\n        vgSeti(VG_SCISSORING, VG_FALSE);\r\n}`\r\n\r\nIf you find them useful, please add them."}}