sample code of opengl