*/
// stdlib includes
+#include <iostream>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <boost/program_options.hpp>
+#include <X11/keysym.h>
namespace po = boost::program_options;
// my GL utility functions and the GL window class
#include "glutil.h"
#include "glwindow.h"
-// include proper GL backend
-#if defined(USE_GLX)
+// include proper GL backend (windowing system)
+#if defined(WIN_GLX)
#include "glxbackend.h"
static GLBackend *createGLBackend()
{
return new GLXBackend();
}
-#elif defined(USE_EGL)
+#elif defined(WIN_EGL)
#include "eglbackend.h"
static GLBackend *createGLBackend()
{
("help,h", "produce help message")
("swap-interval,i", po::value<int>(), "set swap interval")
("overdraw,o", "overdraw previous image (instead of calling glClear)")
- ("sleep,s", po::value<int>()->default_value(0), "Number of milliseconds to sleap in each frame (in the drawing phase)")
+ ("sleep,s", po::value<int>()->default_value(0), "Number of milliseconds to sleep in each frame (in the drawing phase)")
;
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);