adding utility for opengl class