summaryrefslogtreecommitdiff
path: root/tests/system-gl.h
blob: ddc2cf24eac4b2778dc0a82569b87dcb839e475b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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