Catmull–Clark subdivision surface/C: Difference between revisions
Content added Content deleted
(tweaks for better display) |
m (add {{libheader|GLUT}}) |
||
Line 1: | 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. |
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> |
<lang c>#include <stdio.h> |