From 1adaa3def2138fafd40b9d9df212a068c57cdbf4 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 16 Feb 2021 09:29:13 +0100 Subject: Create classes Fl_XXX_Gl_Window_Driver according to driver model. --- src/Fl_Gl_Choice.H | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'src/Fl_Gl_Choice.H') 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 -# define FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS void* pixelformat; -#endif // FL_CFG_GFX_QUARTZ - - -#ifdef FL_CFG_GFX_XLIB -# include -# 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 -# 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 -- cgit v1.2.3