]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/blobdiff - base/main.cc
Fix missing USE_GL macro usage
[hubacji1/iamcar.git] / base / main.cc
index 3ae89299acd438532b954001260e05f1184be462..64532824b0d0fa134e5243001103b878433dca37 100644 (file)
@@ -26,10 +26,13 @@ along with I am car. If not, see <http://www.gnu.org/licenses/>.
 #include "obstacle.h"
 #include "rrtplanner.h"
 #include "slotplanner.h"
+
+#if USE_GL > 0
 // OpenGL
 #include <GL/gl.h>
 #include <GL/glu.h>
 #include <SDL2/SDL.h>
+#endif
 
 // debug
 //#define JSONLOGEDGES
@@ -75,11 +78,13 @@ void TPRINT(const char *what) {
 
 bool run_planner = true;
 
+#if USE_GL > 0
 SDL_Window* gw = NULL;
 SDL_GLContext gc;
 
 bool init();
 bool initGL();
+#endif
 
 void hint(int)
 {