OpenGL Quads
Requires #22
Implements a new type of Quads, rotated quads. They are defined by a center point, width, height and rotation.
Notable:
- The old quad style is still available, but has been renamed to drawAAQuad (axis aligned quad).
- If we run into performance issues later on it should be possible to reuse the rotation matrix or to precompute specific matrices. But for now I suggest that we prefer clarity over performance.
- fixes #5 (closed)
Method overview:
- [public]
drawRotatedQuad(x, y, width, height, rotation, color)
- [public]
drawAAQuad(x, y, width, height, color)
- [private]
drawQuadImpl(x1, y1, x2, y2, x3, y3, x4, y4, color)
I feel like I'm done with Linear Algebra for this week...