misc helpers for opengl in go