mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +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 {
|
class FL_EXPORT Fl_Gl_Window : public Fl_Window {
|
||||||
friend class Fl_Gl_Window_Driver;
|
friend class Fl_Gl_Window_Driver;
|
||||||
|
friend class _Fl_Gl_Overlay;
|
||||||
Fl_Gl_Window_Driver *pGlWindowDriver;
|
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_;
|
int mode_;
|
||||||
const int *alist;
|
const int *alist;
|
||||||
Fl_Gl_Choice *g;
|
Fl_Gl_Choice *g;
|
||||||
@@ -77,8 +81,6 @@ public:
|
|||||||
void hide();
|
void hide();
|
||||||
void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
int handle(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
|
Is turned off when FLTK creates a new context for this window or
|
||||||
|
|||||||
Reference in New Issue
Block a user