Catmull–Clark subdivision surface/C: Difference between revisions
Catmull–Clark subdivision surface/C (view source)
Revision as of 14:09, 1 September 2022
, 1 year agoFixed syntax highlighting.
m (GL_LINE -> GL_LINES) |
m (Fixed syntax highlighting.) |
||
Line 1:
{{libheader|GLUT}}
Full C code, OpenGL program. Looooong. Keybindings of interest: '<' and '>' for subdivision steps; 'w' toggles wireframe mode; arrow keys and space for rotation; 'm' for switching models; misc keys: p, l, a, z, s, p, q.
<
#include <stdlib.h>
#include <string.h>
Line 763:
return 0;
}</
|