working on opengl integration