From b511f6a7a4f02cad8731c7e514f2778444a066fa Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 29 Nov 2018 17:50:55 +0000 Subject: Use the Fl_Gl_Device_Plugin mechanism to simplify the construction of a layer-backed GL window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 5378293f3..d1b96392c 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -25,6 +25,7 @@ #define Fl_Device_H #include +#include #include class Fl_Graphics_Driver; @@ -127,6 +128,8 @@ public: \return The captured pixels as an RGB image */ virtual Fl_RGB_Image* rectangle_capture(Fl_Widget *widget, int x, int y, int w, int h) = 0; + /** Returns the window's GL context */ + virtual GLContext context(class Fl_Window *glw) = 0; }; #endif // Fl_Device_H -- cgit v1.2.3