Skip to content

Instantly share code, notes, and snippets.

@aharisu
Created March 20, 2013 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aharisu/5202340 to your computer and use it in GitHub Desktop.
Save aharisu/5202340 to your computer and use it in GitHub Desktop.
コンパイル方法 gcc `pkg-config --libs quesoglc` -lglut test.c
#include <stdio.h>
#include <GL/glc.h>
#include <GL/glut.h>
int main(int argc, char** argv)
{
GLint ctx;
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("hoge");
printf("1\n");
ctx = glcGenContext();
printf("2\n");
glcContext(ctx);
printf("3\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment