Optimized OpenGL drawing, made the math more low-level.