added sample 7 for opengl