pmc/cube.cc
changeset 46 4b9e1ac40246
parent 45 7197576fedcf
child 54 c064ce9f40f5
equal deleted inserted replaced
45:7197576fedcf 46:4b9e1ac40246
    76     }
    76     }
    77 }
    77 }
    78 
    78 
    79 void Cube::show ()
    79 void Cube::show ()
    80 {
    80 {
    81     /*
       
    82      * Implement some Sanity Checks
       
    83      */
       
    84     int height = surface->getHeight ();
       
    85 
       
    86     surface->drawLine (P[0]->X (), P[0]->Y (), P[1]->X (), P[1]->Y ());
    81     surface->drawLine (P[0]->X (), P[0]->Y (), P[1]->X (), P[1]->Y ());
    87     surface->drawLine (P[3]->X (), P[3]->Y (), P[2]->X (), P[2]->Y ());
    82     surface->drawLine (P[3]->X (), P[3]->Y (), P[2]->X (), P[2]->Y ());
    88     surface->drawLine (P[2]->X (), P[2]->Y (), P[1]->X (), P[1]->Y ());
    83     surface->drawLine (P[2]->X (), P[2]->Y (), P[1]->X (), P[1]->Y ());
    89     surface->drawLine (P[3]->X (), P[3]->Y (), P[0]->X (), P[0]->Y ());
    84     surface->drawLine (P[3]->X (), P[3]->Y (), P[0]->X (), P[0]->Y ());
    90 
    85