52 #ifndef Fl_Gl_Choice_H
53 #define Fl_Gl_Choice_H
59 # define GLContext HGLRC
60 #elif defined(__APPLE_QD__)
61 # include <OpenGL/gl.h>
63 # define GLContext AGLContext
64 #elif defined(__APPLE_QUARTZ__)
66 # include <OpenGL/gl.h>
68 # define GLContext AGLContext
71 # define GLContext GLXContext
82 PIXELFORMATDESCRIPTOR pfd;
83 #elif defined(__APPLE_QD__)
84 AGLPixelFormat pixelformat;
85 #elif defined(__APPLE_QUARTZ__)
87 AGLPixelFormat pixelformat;
102 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice*,
int layer=0);
104 #elif defined(__APPLE_QD__)
106 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice*,
int layer=0);
108 #elif defined(__APPLE_QUARTZ__)
111 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice*,
int layer=0);
115 GLContext fl_create_gl_context(XVisualInfo* vis);
118 GLContext fl_create_gl_context(Fl_Window*,
const Fl_Gl_Choice* g) {
119 return fl_create_gl_context(g->vis);
124 void fl_set_gl_context(Fl_Window*, GLContext);
125 void fl_no_gl_context();
126 void fl_delete_gl_context(GLContext);
Definition: Fl_Gl_Choice.H:75