diff options
| author | ManoloFLTK <manolo> | 2018-12-05 11:04:58 +0100 |
|---|---|---|
| committer | ManoloFLTK <manolo> | 2018-12-05 11:04:58 +0100 |
| commit | 3bcb1256bb3b5c6c3600bef5736936cdb613269c (patch) | |
| tree | 698a8d6ad6525f6296de5d39d2b8356a1e5ae99a /src/Fl_Device.cxx | |
| parent | fb4cb7165583b612ba95563445fa9d0685e2a75a (diff) | |
New static member function: Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin()
Diffstat (limited to 'src/Fl_Device.cxx')
| -rw-r--r-- | src/Fl_Device.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index d43517b25..1166c7582 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -122,6 +122,15 @@ Fl_Surface_Device *Fl_Surface_Device::pop_current() return surface_; } +Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin() { + static Fl_Device_Plugin *pi = NULL; + if (!pi) { + Fl_Plugin_Manager pm("fltk:device"); + pi = (Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org"); + } + return pi; +} + // // End of "$Id$". // |
