Catmull–Clark subdivision surface/C: Difference between revisions
Content added Content deleted
(extremely long C code) |
m (keys) |
||
Line 1: | Line 1: | ||
Full C code, OpenGL program. Looooong. Keybindings of interest: '<' and '>' for subdivision steps; 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> |
||
#include <stdlib.h> |
#include <stdlib.h> |