2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2011-10-01 03:36:30 +04:00
|
|
|
|
2014-01-31 04:21:32 +04:00
|
|
|
#ifndef NULLGL
|
2011-10-01 03:36:30 +04:00
|
|
|
#include <GL/glew.h>
|
2011-11-28 04:41:36 +04:00
|
|
|
|
2013-01-27 02:18:31 +04:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#include <OpenGL/OpenGL.h>
|
|
|
|
#else
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
|
|
|
#endif
|
2011-10-01 03:36:30 +04:00
|
|
|
|
2014-01-31 04:21:32 +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>
|
|
|
|
|
2013-02-21 09:02:44 +04:00
|
|
|
std::string glew_dump();
|
|
|
|
std::string glew_extensions_dump();
|
2013-01-27 02:23:44 +04:00
|
|
|
bool report_glerror(const char * function);
|