OpenGL/Utah teapot: Difference between revisions
→{{header|C}}
Line 10:
This implementation sticks to the task requirements and only shows the teapot, it's rotating, so you can enjoy it's magnificence from all possible viewpoints and perspectives.
<lang C>
#include<gl/freeglut.h>▼
/*Abhishek Ghosh, MahaShoshti, 26th September 2017*/
▲#include<gl/freeglut.h>
double rot = 0;
Line 54:
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH);
glutInitWindowSize(900,700);
glutCreateWindow("
init();
glutDisplayFunc(display);
Line 62:
}
</lang>
=={{header|Lisp}}==
{{libheader|GL}}{{libheader|GLU}}
|