mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Simpler list of virtual member functions of Fl_Gl_Window_Driver
This commit is contained in:
@@ -224,18 +224,15 @@ void Fl_X11_Gl_Window_Driver::make_overlay(void *¤t) {
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Windows version:
|
||||
|
||||
void Fl_WinAPI_Gl_Window_Driver::hide_overlay(void *& overlay) {
|
||||
#if HAVE_GL_OVERLAY
|
||||
void Fl_WinAPI_Gl_Window_Driver::gl_hide_before(void *& overlay) {
|
||||
if (overlay && overlay != pWindow) {
|
||||
delete_gl_context((GLContext)overlay);
|
||||
overlay = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Fl_WinAPI_Gl_Window_Driver::hide_overlay() {
|
||||
Fl_Gl_Window_Driver::hide_overlay();
|
||||
}
|
||||
|
||||
void Fl_WinAPI_Gl_Window_Driver::make_overlay_current() {
|
||||
#if HAVE_GL_OVERLAY
|
||||
|
||||
@@ -290,7 +290,7 @@ void Fl_Gl_Window::context(GLContext v, int destroy_flag) {
|
||||
*/
|
||||
void Fl_Gl_Window::hide() {
|
||||
context(0);
|
||||
pGlWindowDriver->hide_overlay(overlay);
|
||||
pGlWindowDriver->gl_hide_before(overlay);
|
||||
Fl_Window::hide();
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
virtual void resize(int is_a_resize, int w, int h) {}
|
||||
virtual char swap_type();
|
||||
virtual int flush_begin(char& valid_f) {return 0;}
|
||||
virtual void hide_overlay(void *& overlay) {}
|
||||
virtual void gl_hide_before(void *& overlay) {} // the default implementation may be enough
|
||||
static Fl_Gl_Choice *find_begin(int m, const int *alistp);
|
||||
// Return one of these structures for a given gl mode.
|
||||
// The second argument is a glX attribute list, and is used if mode is zero.
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
virtual void set_gl_context(Fl_Window* w, GLContext context) {}
|
||||
virtual void delete_gl_context(GLContext) {}
|
||||
virtual void make_overlay(void* &o);
|
||||
virtual void hide_overlay() {}
|
||||
virtual void hide_overlay() {} // the default implementation may be enough
|
||||
virtual void make_overlay_current() {}
|
||||
virtual void redraw_overlay() {}
|
||||
virtual int can_do_overlay() {return 0;}
|
||||
@@ -135,8 +135,6 @@ class Fl_WinAPI_Gl_Window_Driver : public Fl_Gl_Window_Driver {
|
||||
virtual void swap_buffers();
|
||||
virtual void invalidate() {}
|
||||
virtual int flush_begin(char& valid_f);
|
||||
virtual void hide_overlay(void *& overlay);
|
||||
virtual void hide_overlay();
|
||||
virtual Fl_Gl_Choice *find(int m, const int *alistp);
|
||||
virtual GLContext create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer = 0);
|
||||
virtual void set_gl_context(Fl_Window* w, GLContext context);
|
||||
@@ -149,6 +147,7 @@ class Fl_WinAPI_Gl_Window_Driver : public Fl_Gl_Window_Driver {
|
||||
virtual void get_list(Fl_Font_Descriptor *fd, int r);
|
||||
virtual int genlistsize();
|
||||
#if HAVE_GL_OVERLAY
|
||||
virtual void gl_hide_before(void *& overlay);
|
||||
virtual int can_do_overlay();
|
||||
virtual int overlay_color(Fl_Color i);
|
||||
void make_overlay(void*&overlay);
|
||||
|
||||
Reference in New Issue
Block a user