Anonymous user
Knight's tour/C: Difference between revisions
no edit summary
(→OpenGL: double buffer) |
imported>Katsumi No edit summary |
||
Line 3:
{{libheader|GLUT}}
OpenGL program with glut. Compile with <code>gcc -std=c99 -lglut -lGL -lGLU</code>, run with <code>a.out -s [size]</code>. Program will print a help message at start.
<syntaxhighlight lang="c">
#include <GL/gl.h>
#include <GL/glu.h>
Line 328 ⟶ 329:
glutMainLoop();
return 0;
}
</syntaxhighlight>
|