mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
Make Fl_Gl_Window::gl_driver() private (#184)
The driver stuff should be private. The only usage I found was in class _Fl_Gl_Overlay which is now a 'friend class'.
This commit is contained in:
+4
-2
@@ -50,8 +50,12 @@ class Fl_Gl_Window_Driver;
|
||||
*/
|
||||
class FL_EXPORT Fl_Gl_Window : public Fl_Window {
|
||||
friend class Fl_Gl_Window_Driver;
|
||||
friend class _Fl_Gl_Overlay;
|
||||
Fl_Gl_Window_Driver *pGlWindowDriver;
|
||||
|
||||
/** Returns a pointer to the window's Fl_Gl_Window_Driver object */
|
||||
Fl_Gl_Window_Driver *gl_driver() {return pGlWindowDriver;}
|
||||
|
||||
int mode_;
|
||||
const int *alist;
|
||||
Fl_Gl_Choice *g;
|
||||
@@ -77,8 +81,6 @@ public:
|
||||
void hide();
|
||||
void resize(int,int,int,int);
|
||||
int handle(int);
|
||||
/** Returns a pointer to the window's Fl_Gl_Window_Driver object */
|
||||
Fl_Gl_Window_Driver *gl_driver() {return pGlWindowDriver;}
|
||||
|
||||
/**
|
||||
Is turned off when FLTK creates a new context for this window or
|
||||
|
||||
Reference in New Issue
Block a user