summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Choice.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-16 09:29:13 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-16 09:29:13 +0100
commit1adaa3def2138fafd40b9d9df212a068c57cdbf4 (patch)
tree0898ea907c763d197d5137dc299eef8005c16de1 /src/Fl_Gl_Choice.H
parent1f55bfe65cc8ca6e7b79efad66a7c304a69b12fe (diff)
Create classes Fl_XXX_Gl_Window_Driver according to driver model.
Diffstat (limited to 'src/Fl_Gl_Choice.H')
-rw-r--r--src/Fl_Gl_Choice.H31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/Fl_Gl_Choice.H b/src/Fl_Gl_Choice.H
index 7c83170be..2d2f0fb76 100644
--- a/src/Fl_Gl_Choice.H
+++ b/src/Fl_Gl_Choice.H
@@ -40,33 +40,7 @@
#ifndef Fl_Gl_Choice_H
#define Fl_Gl_Choice_H
-#ifdef FL_CFG_GFX_QUARTZ
-# include <OpenGL/gl.h>
-# define FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS void* pixelformat;
-#endif // FL_CFG_GFX_QUARTZ
-
-
-#ifdef FL_CFG_GFX_XLIB
-# include <GL/glx.h>
-# if ! defined(GLX_VERSION_1_3)
-# typedef void *GLXFBConfig;
-# endif
-# define FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS \
- XVisualInfo *vis; /* the visual to use */ \
- Colormap colormap; /* a colormap for that visual */ \
- GLXFBConfig best_fb;
-#endif // FL_CFG_GFX_XLIB*/
-
-
-#ifdef FL_CFG_GFX_GDI
-# include <FL/gl.h>
-# define FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS \
- int pixelformat; /* the visual to use */ \
- PIXELFORMATDESCRIPTOR pfd; // some wgl calls need this thing
-#endif // FL_CFG_GFX_GDI
-
-
-// Describes crap needed to create a GLContext.
+// Describes the platform-independent part of data needed to create a GLContext.
class Fl_Gl_Choice {
friend class Fl_Gl_Window_Driver;
int mode;
@@ -74,9 +48,6 @@ class Fl_Gl_Choice {
Fl_Gl_Choice *next;
public:
Fl_Gl_Choice(int m, const int *alistp, Fl_Gl_Choice *n) : mode(m), alist(alistp), next(n) {}
- FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS
};
-#undef FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS
-
#endif // Fl_Gl_Choice_H