45 #ifndef Fl_Gl_Choice_H
46 #define Fl_Gl_Choice_H
52 # define GLContext HGLRC
53 #elif defined(__APPLE_QUARTZ__)
54 # include <OpenGL/gl.h>
56 @class NSOpenGLPixelFormat;
57 @class NSOpenGLContext;
59 class NSOpenGLPixelFormat;
60 class NSOpenGLContext;
62 typedef NSOpenGLContext* FLOpenGLContextPtr;
63 # define GLContext FLOpenGLContextPtr
66 # define GLContext GLXContext
67 # if ! defined(GLX_VERSION_1_3)
68 # typedef void *GLXFBConfig;
80 PIXELFORMATDESCRIPTOR pfd;
81 #elif defined(__APPLE_QUARTZ__)
82 NSOpenGLPixelFormat* pixelformat;
100 #elif defined(__APPLE_QUARTZ__)
106 GLContext fl_create_gl_context(XVisualInfo* vis);
115 void fl_set_gl_context(
Fl_Window*, GLContext);
116 void fl_no_gl_context();
117 void fl_delete_gl_context(GLContext);