OpenGL

FREE OpenGL Computer Graphics Questions and Answers

0%

What stands for GLUT?

Correct! Wrong!

Explanation:
GLUT is a library of utility functions for OpenGL programming that simplifies the process of creating windows and handling input events. It provides a set of functions that allow programmers to create windows, menus, and user interfaces for their OpenGL applications, without having to worry about the low-level details of window management and event handling.

In OpenGL, is it possible to specify the location of a light source?

Correct! Wrong!

Explanation:
In OpenGL you can specify the location of a light source using various functions provided by the OpenGL API.

Which function specifies the vertex's color while illumination is off?

Correct! Wrong!

Explanation:
When lighting is disabled in OpenGL, the glColor() function is used to specify the color of the vertices. This function sets the current color of the vertices that follow, until a new color is specified using glColor() again.

What are a 3D transformation matrix's dimensions?

Correct! Wrong!

How can one revolve about a location other than the origin?

Correct! Wrong!

What makes glColor3d and glColor3f different from one another?

Correct! Wrong!

Explanation:
The difference between glColor3d and glColor3f in OpenGL is the data type of the arguments that they take.

What is glMaterialf(...) used for?

Correct! Wrong!

Explanation:
The glMaterialf function in OpenGL is used to set a single floating-point value for a specific material property of a drawn object. The material properties defined using this function affect the way that an object interacts with light, and can be used to achieve various visual effects.