From 762d02fb6207c40e3c0e2ff8a9d41a510094f9c0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 16 Mar 2010 22:51:31 +0000 Subject: Using Fl_Plugin feature to automatically draw OpenGL (sub)windows. No extra coding needs to be done. Just call Fl_Printer::print_widget(...). The Fl_Gl_Printer device can (and should) be removed or at least made inaccessible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Gl_Window.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'FL/Fl_Gl_Window.H') diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index dac0a096f..9842aed41 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -205,6 +205,13 @@ public: */ void make_overlay_current(); + /** Returns an Fl_Gl_Window pointer if this widget is an Fl_Gl_Window. + \retval NULL if this widget is not derived from Fl_Gl_Window. + \note This method is provided to avoid dynamic_cast. + \todo More documentation ... + */ + virtual Fl_Gl_Window* as_gl_window() {return this;} + ~Fl_Gl_Window(); /** Creates a new Fl_Gl_Window widget using the given size, and label string. -- cgit v1.2.3