updated to better opengl example