/* Eylul Dogruel CS307 Fall 2006 Demo of Ghost This code adapted from gkim's demo. */ #include #include //#include "edogruel.cpp" #include #include twTriple hairColor = {0.0,0.0,0.0}; //black twTriple eyeColor = {1.0,1.0,1.0}; //white twTriple irisColor = {1.0,0.5,0.5}; //pink twTriple skinColor = {125.0/255.0, 125.0/255.0, 125.0/255.0}; // light gray twTriple dressColor = {95.0/255.0, 95.0/255.0, 95.0/255.0}; // dark gray twTriple nAng = {0,0,0}; //neck angle twTriple hAng = {0,0,0}; //head angle twTriple cAng = {0,0,0}; //chest angle twTriple tAng = {0,0,0}; //torso angle twTriple hipAng = {0,0,0}; //hip angle twTriple lAng = {0,0,0}; //leg angle void display(void) { twDisplayInit(); twCamera(); // sets up camera based on bounding box coordinates // draw the imported object - ghost eylul_Ghost( 1.0, 1.0, 1.0, nAng, hAng, 0, 0, cAng, tAng, hipAng, lAng, skinColor, dressColor, eyeColor, irisColor, hairColor, 4 ); 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(-2,2,-4,4,-2,2); twMainInit(); glutMainLoop(); return 0; }