OpenGL Function Calls Flashcards
1
Q
glutInit(&rgc, argv);
A
Initialize GLUT
2
Q
glutCreateWindow(“Vertex, Primitive & Color”);
A
Create Window with given title
3
Q
glutInitWindowSize(320, 320);
A
Set the window’s initial width & height
4
Q
glutWindowPosition(50, 50);
A
Position the window’s initial top-left corner
5
Q
glutDisplayFunc(display);
A
Register callback handler for window re-paint event
6
Q
initGL();
A
Our own OpenGL initialization
7
Q
glutMainLoop();
A
Enter the event-processing loop
8
Q
gluOrtho2D
A
Set the clipping area of 2D orthographic view
9
Q
glViewport
A
configure the viewport