glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//glBegin(GL_TRIANGLES);
// glVertex3f(-0.5,-0.5,0.0);
// glVertex3f(0.5,0.0,0.0);
// glVertex3f(0.0,0.5,0.0);
//glEnd();
glutSolidSphere(200,10,10);
glutSwapBuffers();
三角形出现了,但没有球体,为什么?我只是得到一个黑色的窗口