Question: Given is an OpenGL program with the display method void display(void) { // clear all pixels in frame buffer glClear(GL_COLOR_BUFFER_BIT); glColor3f(0.0, 0.0, 0.0); glBegin(GL_TRIANGLE_FAN); glVertex2f(300,

Given is an OpenGL program with the display method

void display(void)

{

// clear all pixels in frame buffer

glClear(GL_COLOR_BUFFER_BIT);

glColor3f(0.0, 0.0, 0.0);

glBegin(GL_TRIANGLE_FAN);

glVertex2f(300, 100);

glVertex2f(100, 300);

glVertex2f(100, 100);

glVertex2f(200, 0);

glEnd();

glFlush();

What shape does this display method draw? Given is an OpenGL program with the display method void display(void) {

(d) None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!