glVertex2f (50, 50);. glVertex2f(75, 150);. glEnd();. // Draw a rectangle given the four corners. glBegin(GL_QUADS); // Use GL_LINE_LOOP for hollow.
確定! 回上一頁