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;
98 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice*,
int layer=0);
100 #elif defined(__APPLE_QUARTZ__)
102 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice*,
int layer=0);
106 GLContext fl_create_gl_context(XVisualInfo* vis);
109 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice* g);
115 void fl_set_gl_context(Fl_Window*, GLContext);
116 void fl_no_gl_context();
117 void fl_delete_gl_context(GLContext);
Definition: Fl_Gl_Choice.H:73