summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-29 10:40:02 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-29 10:40:18 +0200
commit9df287b415cd4d67a7a371c4cc89a11ebb8340f6 (patch)
treec918ed8ee29b088555746e7ad391e425b1aa920f /src/Fl_Gl_Window_Driver.H
parentf9e8ef0b7acd645a6327eb9d8fb76ce99481b0f9 (diff)
Cleaner access to Fl_Gl_Window_Driver objects.
Diffstat (limited to 'src/Fl_Gl_Window_Driver.H')
-rw-r--r--src/Fl_Gl_Window_Driver.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Gl_Window_Driver.H b/src/Fl_Gl_Window_Driver.H
index bebde10fc..ae2c66ff2 100644
--- a/src/Fl_Gl_Window_Driver.H
+++ b/src/Fl_Gl_Window_Driver.H
@@ -100,6 +100,7 @@ public:
virtual int genlistsize() { return 0; } // support for gl_draw()
virtual Fl_Font_Descriptor** fontnum_to_fontdescriptor(int fnum);
virtual Fl_RGB_Image* capture_gl_rectangle(int x, int y, int w, int h);
+ static inline Fl_Gl_Window_Driver* driver(const Fl_Gl_Window *win) {return win->pGlWindowDriver;}
};
#endif /* Fl_Gl_Window_Driver_H */