netgen/libsrc/include/incopengl.hpp

40 lines
1.2 KiB
C++
Raw Normal View History

#ifndef INCOPENGL_HPP___
#define INCOPENGL_HPP___
2014-10-08 18:46:25 +06:00
#define GL_GLEXT_PROTOTYPES
#include <mydefs.hpp>
2014-10-08 18:46:25 +06:00
2016-02-25 01:59:14 +05:00
# if defined(TOGL_AGL) || defined(TOGL_AGL_CLASSIC) || defined(TOGL_NSOPENGL)
2014-10-08 18:46:25 +06:00
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# else
# include <GL/gl.h>
# include <GL/glu.h>
# endif
#ifdef TOGL_X11
// parallel
#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
#include <GL/glxext.h>
#endif
#ifdef WIN32
2014-10-08 18:46:25 +06:00
// part of OpenGL 1.2, but not in Microsoft's OpenGL 1.1 header:
2017-12-05 02:32:47 +05:00
// GL version should be checked at runtime
#define GL_CLAMP_TO_EDGE 0x812F
#define GL_ARRAY_BUFFER 0x8892
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
#define GL_STATIC_DRAW 0x88E4
typedef ptrdiff_t GLintptr;
typedef ptrdiff_t GLsizeiptr;
extern void (*glBindBuffer) (GLenum a, GLuint b);
extern void (*glDeleteBuffers) (GLsizei a, const GLuint *b);
extern void (*glGenBuffers) (GLsizei a, GLuint *b);
extern void (*glBufferData) (GLenum a, GLsizeiptr b, const GLvoid *c, GLenum d);
extern void (*glBufferSubData) (GLenum a, GLintptr b, GLsizeiptr c, const GLvoid *d);
2014-10-08 18:46:25 +06:00
#endif
DLL_HEADER void LoadOpenGLFunctionPointers();
#endif // INCOPENGL_HPP___