
#if __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/glext.h>
#endif

#ifdef  __cplusplus
extern "C" {
#endif

#ifdef __APPLE__

/* OpenGL 1.3 */
# define glActiveTexture_ glActiveTexture
# define glClientActiveTexture_ glClientActiveTexture
# define glLoadTransposeMatrixf_ glLoadTransposeMatrixf

/* OpenGL 1.5 */
# define glBindBuffer_ glBindBuffer
# define glBufferData_ glBufferData
# define glDeleteBuffers_ glDeleteBuffers
# define glGenBuffers_ glGenBuffers

#else

/* OpenGL 1.3 */
extern PFNGLACTIVETEXTUREPROC glActiveTexture_;
extern PFNGLCLIENTACTIVETEXTUREPROC glClientActiveTexture_;
extern PFNGLLOADTRANSPOSEMATRIXFPROC glLoadTransposeMatrixf_;

/* OpenGL 1.5 */
extern PFNGLBINDBUFFERPROC glBindBuffer_;
extern PFNGLBUFFERDATAPROC glBufferData_;
extern PFNGLDELETEBUFFERSPROC glDeleteBuffers_;
extern PFNGLGENBUFFERSPROC glGenBuffers_;

#endif

extern void init_glprocs(void);

#ifdef  __cplusplus
}
#endif
