main.cpp 409 B

123456789101112131415161718192021
  1. #include <iostream>
  2. #include <GL/glut.h>
  3. void display() {
  4. glClear(GL_COLOR_BUFFER_BIT);
  5. glFlush();
  6. }
  7. int main(int argc, char** argv) {
  8. std::cout << "Beginning Application" << std::endl;
  9. glutInit(&argc, argv);
  10. glutInitDisplayMode(GLUT_SINGLE);
  11. glutInitWindowSize(300, 300);
  12. glutInitWindowPosition(100, 100);
  13. glutCreateWindow("Application");
  14. glutDisplayFunc(display);
  15. glutMainLoop();
  16. return 0;
  17. }