OpenGL Programming Test
After a glRenderMode (GL_SELECT), no fragment are produced.
Can "discard" be used in a vertex shader?
Can glNormal be called between glBegin and glEnd ?
Can you read a uniform value from the C code?
Consider the following code: glTranslatef (1.0, 2.0, 3.0); glRotatef (40, 1.0, 0.0, 0.0); What will be the first transformation from a geometric point of view?
Does gluProject use the current matrix stack?
glOrtho is used to define a _________ matrix.
How can you access the current modelview matrix?
How do you initialize the name stack?
If the viewport is 1024 by 768, the projection matrix is a 45 degree perspective matrix with the viewport ratio and the modelview matrix is the identity, what will be drawn on the screen when the f...
In Linux, what API will you use to get an OpenGL context?
In which version of OpenGL, GLSL was introduced as a core feature?
In Windows, what API will you use to get an OpenGL context?
Is glFinish blocking?
Is gluBeginPolygon the same as glBegin(GL_POLYGON)?
Is the following a valid drawing function? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); ...
Is the following a valid drawing function? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glMatrixMode (GL_PROJECTION); glLoadIdentity (); glPushMatrix (); gluPerspective (...
Is the following code correct? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); glVertex2i (-1, 0); glEnd (GL_QUADS);
Is the following code valid? glMatrixMode (GL_MODELVIEW); glLoadIdentity (); glTranslatef (0, 0, -10);
Is there any non-structured flow of control like "goto" in GLSL?
On what language is GLSL syntax based?
On which matrix stack should gluLookAt be used?
On which matrix stack should gluOrtho2D be used?
OpenGL can draw convex polygons. Can it draw non-convex ones?
OpenGL has some windows manipulation functions.
The matrix, after the following calls, will be the identity matrix. glLoadIdentity (); glTranslatef (0, 0, -10); glRotatef (40, 1, 0, 0); glTranslatef (0, 0, 10); glR...
What does glActiveTexture do?
What does glBitmap do?
What does glClear do?
What does glFrustum do?
What does glGetMinmax do?
What does glPassThrough() do?
What does gluOrtho2D do?
What image format does OpenGL understand?
What is a display list?
What is a proxy texture?
What is a varying variable?
What is blending?
What is gl_Vertex in a vertex shader?
What is the common size of OpenGL matrices?
What is the default parameter qualifier?
What is the difference between glLoadTransposeMatrix and glLoadMatrix?
What is the difference between statements A and B? A: gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex; B: gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
What is the first argument of glRotate?
What is the primary language of OpenGL?
What is the purpose of glTexCoord?
What is true of OpenGL?
What is true of the following code? glPushMatrix (); glLoadIdentity (); glTranslatef (1.0, 2.0, 4.0); glPopMatrix ();
What is usually the best texture format for upload?
What is vsync?
What is/are the return type/s of glGetx () ?
What should be added to make this drawing function valid? void draw (void) { glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glTranslatef (0, 0, -10); glColor3f (1.0, 1....
What should be the render mode to use glLoadName ()?
What will be drawn by the following code? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 0); glEnd ();
What will be drawn by the following code? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 0); glVertex2i (-1, 1); glEnd ();
What will be the size of the quad drawn by the following code on the screen? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); glVertex2i (-1, 0); ...
What will happen if a null pointer is used with glTexImage2D()? (In OpenGL >1.1)
What will happen if you do the following? glMatrixMode (GL_PROJECTION); glRotatef (10, 1, 0, 0);
When a matrix has been popped from the stack, is it possible to read it again?
When glMultMatrix takes a matrix, how should it be ordered?
Which color is defined by the following call? glColor3f (1.0, 0.0, 0.0);
Which color is defined by the following call? glColor3ub (0, 255, 0);
Which function should be used to specify the coordinates of a point?
Which function should be used to specify the value of a sampler1D?
Which function should be used to upload a 2D texture to OpenGL?
Which of the following are valid picking methods?
Which of the following buffer types is/are supported in OpenGL?
Which of the following functions has an unsigned byte variant? (taking GLubyte as arguments)
Which of the following is faster?
Which of the following is not a valid argument to glBegin ()?
Which of the following is not a valid argument to glMatrixMode ?
Which of the following is not an OpenGL primitive?
Which of the following is typically applied to the modelview matrix stack?
Which of the following might be used to draw VBOs?
Which primitives may be used to draw a circle?
Which values can be used with glTexParameter and GL_TEXTURE_MAG_FILTER parameter names?
Who created OpenGL?
With depth test enabled, will the following drawing code work for depth testing? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glPolygonMode (GL_FRONT_AND_BACK, GL_LINE); glMa...