fix build
[gltest.git] / gltest.cpp
index 440e8f5ef5d1564150e2f1d6062b4a15840460fd..b8d3d0e6a54dc9ba9f9f1ef68ad5ed5eec257ddb 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 // 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()
 {
@@ -194,7 +196,7 @@ int main(int argc, char ** argv)
                ("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);