Utilities for opengl programming