main函数
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
glutInitWindowSize(512, 512);
glutInitWindowPosition(50, 50);
glutCreateWindow("OpenGL");
glutKeyboardFunc(myKeyboard);
glutSpecialFunc(myKey);
glutReshapeFunc(reshape);
glutDisplayFunc(display);
myInit();
glutMouseFunc(mouse); //registered the mouse event.
glutMotionFunc(move); //registered the move event
glutMainLoop();
return 0;
}