Created
September 29, 2016 08:37
-
-
Save FlandreDaisuki/9aa4e76e6644086f2344c8b203a1beab to your computer and use it in GitHub Desktop.
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
/* | |
* 存成 ~/桌面/hello.cpp | |
*/ | |
#include <GL/glut.h> | |
void display(void) | |
{ | |
glClear(GL_COLOR_BUFFER_BIT); | |
glutWireTeapot(0.5); | |
glFlush(); | |
} | |
int main(int argc, char** argv) | |
{ | |
glutInit(&argc, argv); | |
glutInitDisplayMode(GLUT_SINGLE); | |
glutInitWindowSize(300, 300); | |
glutCreateWindow("Hello, teapot :D"); | |
glutDisplayFunc(display); | |
glutMainLoop(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment