//Jackie Weber /* My object for the Object Library table(...) takes four parameters 1) float tablePostLeftX 2) float tablePostRightX 3) float tablePostTopZ 4) float tablePostBottomZ These are the positions of the table legs. This is assuming a normal coordinate system with a normal (down the z axis) camera view. The size of the top of the table is: tablePostRightX-tablePostLeftX tablePostTopZ-tablePostBottomZ y=4*/ #include #include #include #include //#include "Jackie.cc" #include //location of table posts for table const double tablePostLeftX=-3; const double tablePostRightX=5; const double tablePostTopZ=-5; const double tablePostBottomZ=5; void display (void){ twDisplayInit(); twCamera(); jweber2Table(tablePostRightX,tablePostLeftX,tablePostTopZ,tablePostBottomZ); //twColorName(TW_WHITE); //glutSolidSphere(1,10,15); glFlush(); glutSwapBuffers(); } int main(int argc, char ** argv){ glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); twInitWindowSize(500,500); glutCreateWindow(argv[0]); glutDisplayFunc(display); twBoundingBox(-6,6,-1,5,-6,6); twMainInit(); glutMainLoop(); return 0; }