Created
March 20, 2013 04:35
-
-
Save aharisu/5202340 to your computer and use it in GitHub Desktop.
コンパイル方法
gcc `pkg-config --libs quesoglc` -lglut test.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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