Catmull–Clark subdivision surface/C: Difference between revisions

m
Fixed 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.
<langsyntaxhighlight lang="c">#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Line 763:
 
return 0;
}</langsyntaxhighlight>
9,476

edits