summaryrefslogtreecommitdiff
path: root/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-29 15:24:33 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-29 15:24:33 +0000
commit222243bc865df5f6531e6ec7d20c3b1b072d1ee6 (patch)
tree77d171db9767483f808c3c06aa75a1de3ae4d64e /src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
parent72dda7f35a11ca0fedac1ba5047db6988fb16299 (diff)
Made OpenGL driver compile by itself instead of including files from another .cxx file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx')
-rw-r--r--src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
new file mode 100644
index 000000000..94ea3a136
--- /dev/null
+++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
@@ -0,0 +1,42 @@
+//
+// "$Id$"
+//
+// implementation of class Fl_Gl_Device_Plugin for the Fast Light Tool Kit (FLTK).
+//
+// Copyright 2010-2014 by Bill Spitzak and others.
+//
+// This library is free software. Distribution and use rights are outlined in
+// the file "COPYING" which should have been included with this file. If this
+// file is missing or damaged, see the license at:
+//
+// http://www.fltk.org/COPYING.php
+//
+// Please report all bugs and problems to:
+//
+// http://www.fltk.org/str.php
+//
+
+#include <config.h>
+#include "../../config_lib.h"
+#include <FL/Fl_Gl_Window.H>
+#include <FL/Fl_Device.H>
+#include <FL/gl.h>
+
+#include "Fl_OpenGL_Graphics_Driver.h"
+
+Fl_OpenGL_Display_Device *Fl_OpenGL_Display_Device::display_device() {
+ static Fl_OpenGL_Display_Device *display = new Fl_OpenGL_Display_Device(new Fl_OpenGL_Graphics_Driver());
+ return display;
+};
+
+Fl_OpenGL_Display_Device::Fl_OpenGL_Display_Device(Fl_OpenGL_Graphics_Driver *graphics_driver)
+: Fl_Surface_Device(graphics_driver)
+{
+}
+
+const char *Fl_OpenGL_Display_Device::class_id = "Fl_OpenGL_Display_Device";
+
+
+//
+// End of "$Id$".
+//