atmosphere/demo/demo_main.cc

This very simple file provides the main() function of our demo application.

#include "atmosphere/demo/demo.h"

#include <glad/glad.h>
#include <GL/freeglut.h>

#include <memory>

using atmosphere::demo::Demo;

int main(int argc, char** argv) {
  glutInitContextVersion(3, 3);
  glutInitContextProfile(GLUT_CORE_PROFILE);
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
  glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION);

  std::unique_ptr<Demo> demo(new Demo(1024, 576));
  glutMainLoop();
  return 0;
}