Skip to content

OpenGL more Quads

Roan requested to merge opengl/quads into develop

Created by: RoanH

This PR implements Quads with a border and Quads that aren't filled.

afbeelding

Notes:

  • For consistency with other rendering frameworks the old drawQuad function is now functionally the same as the new fillQuad function. Whereas the new drawQuad function will just draw the outline of a quad and not fill it like the old version did.
  • For the exact functionality see the updated documentation.
  • The border line width is fixed at 1px as that is the only value supported by all implementations of WebGL. That of course does not mean that we cannot uses thicker lines, but to do this we will have to make the lines filled quads themselves which would require at least twice as much memory. Therefore I suggest that untill we really need that we make due with the 1px line width.

This PR adds and changes the following public subroutines:

  • fillAAQuad
  • drawAAQuad
  • fillLinedAAQuad
  • fillRotatedQuad
  • drawRotatedQuad
  • fillLinedRotatedQuad

fixes #35 (closed) fixes #31 (closed)

Have fun reviewing this I guess, the OpenGL methods only get more and more complicated ¯\_(ツ)_/¯

Merge request reports

Loading