move some gl utilities to graphics module
debug gl context
draw line (for debugging purposes)