123456789101112131415161718192021 |
- #include <iostream>
- #include <GL/glut.h>
- void display() {
- glClear(GL_COLOR_BUFFER_BIT);
- glFlush();
- }
- int main(int argc, char** argv) {
- std::cout << "Beginning Application" << std::endl;
- glutInit(&argc, argv);
- glutInitDisplayMode(GLUT_SINGLE);
- glutInitWindowSize(300, 300);
- glutInitWindowPosition(100, 100);
- glutCreateWindow("Application");
- glutDisplayFunc(display);
- glutMainLoop();
- return 0;
- }
|