improve calls to GL drawing, move some functions into objects to bundle related code...