C++ OpenGL Source code game Snake - (P1) Khởi tạo lập trình game

Threads: OpenGL/GLUT

Nội dung bài viết

Giải thích các hàm

1. glutInit(&argc, argv);

2. glutInitDisplayMode

3. glutInitWindowSize (500, 500)

4. glutCreateWindow("SNAKE")

5. glutDisplayFunc(display_callback)

6. glutReshapeFunc(reshape_callback)

7. glutTimerFunc(0,timer_callback,0);

8. glutMainLoop()

Please login or register to see more...

Tags: C++, Game Snake

Reviews

Please login or register to comment