summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-29 02:05:59 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-29 02:05:59 (GMT)
commit8c94c31dd2e5e85fc13d39fcd57b26df7afefe1e (patch)
treec200ab775c2785606d25d6246ddfe309d4e726d7 /tests
parent846970462afbe91e3c06f57c45e095a625aec0d3 (diff)
More refactoring of offscreen rendering
Diffstat (limited to 'tests')
-rw-r--r--tests/system-gl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/system-gl.h b/tests/system-gl.h
new file mode 100644
index 0000000..ddc2cf2
--- /dev/null
+++ b/tests/system-gl.h
@@ -0,0 +1,14 @@
+#ifndef SYSTEMGL_H_
+#define SYSTEMGL_H_
+
+#ifdef __APPLE__
+#include <OpenGL/OpenGL.h>
+#include <OpenGL/glu.h> // for gluCheckExtension
+#else
+#include <GL/glew.h>
+#include <GL/gl.h>
+#endif
+
+#define REPORTGLERROR(task) { GLenum tGLErr = glGetError(); if (tGLErr != GL_NO_ERROR) { std::cout << "OpenGL error " << tGLErr << " while " << task << "\n"; } }
+
+#endif
contact: Jan Huwald // Impressum