// Emmanuel Agu, CS 4731 program adapted from Sandy Hill, UMass-Amherst // Read in a GRS (short for 'gross' : a homegrown primitive // file format for polyline drawings ), and draw the polylines in a window #include #include #include #include #include #include #include //<<<<<<<<<<<<<< myInit >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void myInit(void) { glClearColor(1.0,1.0,1.0,0.0); glColor3f(0.0f,0.0f,0.0f); glPointSize(1.0); glMatrixMode(GL_PROJECTION); glLoadIdentity( ); gluOrtho2D(0.0,640.0,0.0,480.0); } void drawPolyLineFile(char * fileName) { } //<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>> void myDisplay(void) { drawPolyLineFile("dino.dat"); } //<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640,480); glutInitWindowPosition(100,150); glutCreateWindow("Program to draw Polylines in GRS format"); glutDisplayFunc(myDisplay); myInit( ); glutMainLoop( ); }