OpenGL Slices
Created by: RoanH
This PR implements a lot of partial circular shapes (aka slices).
Subroutine overview:
drawCircleSlice
fillCircleSlice
fillLinedCircleSlice
drawRingSlice
fillRingSlice
fillLinedRingSlice
And more detailed information is present in the updated documentation.
Some code for reviewers (creates what's in the image above):
gl.drawCircleSlice(500, 0, 200, 0, (360 / 3), [1, 0, 0, 1], 1);
gl.fillCircleSlice(500 - 50, 0, 200, (360 / 3), (360 / 3) * 2, [1, 0, 0, 1], 1);
gl.fillLinedCircleSlice(500, 0, 200, (360 / 3) * 2, (360 / 3) * 3, [1, 0, 0, 1], [0, 0, 0, 1], 1);
gl.drawRingSlice(1000, 0, 100, 200, 0, (360 / 3), [1, 0, 0, 1], 1);
gl.fillRingSlice(1000, 0, 150, 200, (360 / 3), (360 / 3) * 2, [1, 0, 0, 1], 1);
gl.fillLinedRingSlice(1000, 0, 100, 200, (360 / 3) * 2, (360 / 3) * 3, [1, 0, 0, 1], [0, 0, 0, 1], 1);
fixes #84 (closed)