Catmull–Clark subdivision surface/C: Difference between revisions

m
add {{libheader|GLUT}}
(tweaks for better display)
m (add {{libheader|GLUT}})
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.
<lang c>#include <stdio.h>
Anonymous user