netgen/libsrc/include/incopengl.hpp

40 lines
675 B
C++
Raw Normal View History

2014-10-08 18:46:25 +06:00
#define GL_GLEXT_PROTOTYPES
# if defined(TOGL_AGL) || defined(TOGL_AGL_CLASSIC)
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# else
2016-02-22 13:21:47 +05:00
# if defined(TOGL_NSOPENGL)
2016-02-22 21:06:04 +05:00
// ?????? which one is right ??????
// # include <OpenGL/OpenGL.h>
// # include <OpenGL.h>
2016-02-22 13:21:47 +05:00
# include <gl.h>
# include <glu.h>
# else
2014-10-08 18:46:25 +06:00
# include <GL/gl.h>
# include <GL/glu.h>
# endif
2016-02-22 13:21:47 +05:00
# endif
2014-10-08 18:46:25 +06:00
#ifdef TOGL_X11
// parallel
#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
#include <GL/glxext.h>
#endif
// part of OpenGL 1.2, but not in Microsoft's OpenGL 1.1 header:
// GL version sould be checked at runtime
#ifndef GL_CLAMP_TO_EDGE
#define GL_CLAMP_TO_EDGE 0x812F
#endif