Is the following a valid drawing function?
void draw (void)
{
glClear (GL_COLOR_BUFFER_BIT);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
glPushMatrix ();
gluPerspective (45.0, (float)frame.size.width / (float)frame.size.height,
2.0, 1000.0);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
glTranslatef (0, 0, -10);
glColor3f (1.0, 1.0, 0.0);
glBegin (GL_QUADS);
glVertex2i (1, 0);
glVertex2i (1, 1);
glVertex2i (-1, 1);
glVertex2i (-1, 0);
glEnd ();
glFlush ();
}
Correct Answer:
Yes
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More OpenGL MCQ Questions