add generic mesh draw function and move sprite draw function to separate unit

create catch-all util for GL errors + refactors mesh creation

(0) -30 -10 -2 +2 tip

mercurial