TAMSVIZ
Visualization and annotation tool for ROS
opengl.h
1 // TAMSVIZ
2 // (c) 2020 Philipp Ruppel
3 
4 #pragma once
5 
6 #define GL_GLEXT_PROTOTYPES
7 #include <GL/gl.h>
8 #include <GL/glext.h>
9 
10 #include <stdexcept>
11 
12 #define V_GL(x) \
13  while (glGetError()) { \
14  } \
15  x; \
16  while (int e = glGetError()) { \
17  throw std::runtime_error(std::string(#x " failed with error #") + \
18  std::to_string(e)); \
19  }