I have a code to draw cube(frame wire). I want replace them with quads instead of lines.
The following code draws the lines
Code :
 static const HDint aLines[12][2] = 
    {
        { 0, 1 }, { 1, 3 }, { 3, 2 }, { 2, 0 },
        { 4, 5 }, { 5, 7 }, { 7, 6 }, { 6, 4 },
        { 0, 4 }, { 1, 5 }, { 2, 6 }, { 3, 7 }
    };
glBegin(GL_LINES);
    for (i = 0; i < 12; i++)
    {
        glVertex3d((aLines[i][0] & (1 << 0)) ? minPt[0] : maxPt[0],
                   (aLines[i][0] & (1 << 1)) ? minPt[1] : maxPt[1],
                   (aLines[i][0] & (1 << 2)) ? minPt[2] : maxPt[2]);
 
        glVertex3d((aLines[i][1] & (1 << 0)) ? minPt[0] : maxPt[0],
                   (aLines[i][1] & (1 << 1)) ? minPt[1] : maxPt[1],
                   (aLines[i][1] & (1 << 2)) ? minPt[2] : maxPt[2]);
    }
    glEnd();

The cube should have five faces.