openscad/src/system-gl.h

24 lines
393 B
C
Raw Permalink Normal View History

#pragma once
2011-10-01 03:36:30 +04:00
#ifndef NULLGL
2011-10-01 03:36:30 +04:00
#include <GL/glew.h>
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#endif
2011-10-01 03:36:30 +04:00
#else // NULLGL
#define GLint int
#define GLuint unsigned int
inline void glColor4fv( float *c ) {}
#endif // NULLGL
2013-01-27 02:23:44 +04:00
#include <string>
std::string glew_dump();
std::string glew_extensions_dump();
2013-01-27 02:23:44 +04:00
bool report_glerror(const char * function);