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

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

some minor improvements

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

mercurial