Skip to content

Instantly share code, notes, and snippets.

@r7kamura
Created May 5, 2013 21:17
Show Gist options
  • Save r7kamura/5522209 to your computer and use it in GitHub Desktop.
Save r7kamura/5522209 to your computer and use it in GitHub Desktop.
#include <GLUT/glut.h>
void display(void);
// $ cc -framework GLUT window.c
// $ ./a.out
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutCreateWindow("Hello, world!");
glutDisplayFunc(display);
glutMainLoop();
return 0;
}
void display(void)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment