代写 graph OpenGL ECE59500 Computer Graphics Assignment 1

ECE59500 Computer Graphics Assignment 1

Question 1:
Read teapot.poly (or bunny.poly) information into arrays in your program and use OpenGL to display an orthographic projection of the teapot. Use a “wire frame” line drawing (no filled polygons).

The poly file has the following format:
• First line: <# of vertices>
• Second line: <# of faces>
• Following lines: v
• Following lines:
The most important thing to notice about the .poly format is that the indices of vertices (references by the list of faces) start at 1, not 0.