FREE OpenGL Computer Graphics Questions and Answers
What is glMaterialf(...) used for?
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.
How can one revolve about a location other than the origin?
What makes glColor3d and glColor3f different from one another?
Explanation:
The difference between glColor3d and glColor3f in OpenGL is the data type of the arguments that they take.
Which function specifies the vertex's color while illumination is off?
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 stands for GLUT?
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?
Explanation:
In OpenGL you can specify the location of a light source using various functions provided by the OpenGL API.