void displayShape() {
    glClear(GL_COLOR_BUFFER_BIT);
    glColor3f(0.0f, 1.0f, 0.0f);

    GLint iSize = sizeof(point) / sizeof(point[0]);
    glBegin(GL_TRIANGLES);
    for(GLint i = 0; i < iSize; ++i) {
        glVertex2f(point[i].fx, point[i].fy);
    }
    glEnd();

    glRasterPos2i(  0.0f, -200.0f);//is the left-bottom,OpenGL坐标,set the raster position
    glCopyPixels(200.0f, 200.0f,
                100.0f, 100.0f, GL_COLOR);//笛卡尔坐标,set the image size
    glutSwapBuffers();
}

注:

glCopyPixels():把一个矩形像素数组从帧缓冲区的一个部分复制到另一部分。这个函数的行为类似于在调用glReadPixels()之后再调用glDrawPixels(),但数据并不会写入到内存中。