]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/iui_gtk.h
eol style
[xonotic/netradiant.git] / include / iui_gtk.h
index 5cd820c4ea6f811fdfa6266b2a8a73a6e485ca41..93973672b6c5f133873691584bcfbe7629b25034 100644 (file)
@@ -1,59 +1,59 @@
-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
-*/\r
-\r
-//-----------------------------------------------------------------------------\r
-//\r
-// DESCRIPTION\r
-// This contains functions specific to the UI toolkit\r
-//   it is best to avoid using them, but they are provided for backward compatibility with the older interfaces\r
-//   the abstracted UI layer in iUI.h is not sufficient for some tasks .. no other choice than to rely on UI specific code\r
-\r
-#ifndef __IGL_GTK_H__\r
-#define __IGL_GTK_H__\r
-\r
-#define UIGTK_MAJOR "uigtk"\r
-\r
-// All OpenGL stuff is handled by GLWidget to ensure portability\r
-typedef GtkWidget* (WINAPI* PFN_QERAPP_GETQEGLOBALSGLWIDGET) (); \r
-typedef GtkWidget* (WINAPI* PFN_GLWIDGET_NEW) (gboolean zbufffer, GtkWidget* share);\r
-typedef void       (WINAPI* PFN_GLWIDGET_SWAPBUFFERS) (GtkWidget* widget);\r
-typedef gboolean   (WINAPI* PFN_GLWIDGET_MAKECURRENT) (GtkWidget* widget);\r
-typedef void       (WINAPI* PFN_GLWIDGET_DESTROYCONTEXT) (GtkWidget* widget);\r
-typedef void       (WINAPI* PFN_GLWIDGET_CREATECONTEXT) (GtkWidget* widget);\r
-#if 0\r
-typedef gpointer   (WINAPI* PFN_GLWIDGET_GETCONTEXT) (GtkWidget* widget);\r
-#endif\r
-\r
-struct _QERUIGtkTable\r
-{\r
-  int m_nSize;\r
-  PFN_QERAPP_GETQEGLOBALSGLWIDGET       m_pfn_GetQeglobalsGLWidget;\r
-  PFN_GLWIDGET_NEW                      m_pfn_glwidget_new;\r
-  PFN_GLWIDGET_SWAPBUFFERS              m_pfn_glwidget_swap_buffers;\r
-  PFN_GLWIDGET_MAKECURRENT              m_pfn_glwidget_make_current;\r
-  PFN_GLWIDGET_DESTROYCONTEXT           m_pfn_glwidget_destroy_context;\r
-  PFN_GLWIDGET_CREATECONTEXT            m_pfn_glwidget_create_context;\r
-#if 0\r
-  PFN_GLWIDGET_GETCONTEXT               m_pfn_glwidget_get_context;\r
-#endif\r
-};\r
-\r
-#endif\r
+/*
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
+For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+This file is part of GtkRadiant.
+
+GtkRadiant is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GtkRadiant is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GtkRadiant; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+//-----------------------------------------------------------------------------
+//
+// DESCRIPTION
+// This contains functions specific to the UI toolkit
+//   it is best to avoid using them, but they are provided for backward compatibility with the older interfaces
+//   the abstracted UI layer in iUI.h is not sufficient for some tasks .. no other choice than to rely on UI specific code
+
+#ifndef __IGL_GTK_H__
+#define __IGL_GTK_H__
+
+#define UIGTK_MAJOR "uigtk"
+
+// All OpenGL stuff is handled by GLWidget to ensure portability
+typedef GtkWidget* (WINAPI* PFN_QERAPP_GETQEGLOBALSGLWIDGET) (); 
+typedef GtkWidget* (WINAPI* PFN_GLWIDGET_NEW) (gboolean zbufffer, GtkWidget* share);
+typedef void       (WINAPI* PFN_GLWIDGET_SWAPBUFFERS) (GtkWidget* widget);
+typedef gboolean   (WINAPI* PFN_GLWIDGET_MAKECURRENT) (GtkWidget* widget);
+typedef void       (WINAPI* PFN_GLWIDGET_DESTROYCONTEXT) (GtkWidget* widget);
+typedef void       (WINAPI* PFN_GLWIDGET_CREATECONTEXT) (GtkWidget* widget);
+#if 0
+typedef gpointer   (WINAPI* PFN_GLWIDGET_GETCONTEXT) (GtkWidget* widget);
+#endif
+
+struct _QERUIGtkTable
+{
+  int m_nSize;
+  PFN_QERAPP_GETQEGLOBALSGLWIDGET       m_pfn_GetQeglobalsGLWidget;
+  PFN_GLWIDGET_NEW                      m_pfn_glwidget_new;
+  PFN_GLWIDGET_SWAPBUFFERS              m_pfn_glwidget_swap_buffers;
+  PFN_GLWIDGET_MAKECURRENT              m_pfn_glwidget_make_current;
+  PFN_GLWIDGET_DESTROYCONTEXT           m_pfn_glwidget_destroy_context;
+  PFN_GLWIDGET_CREATECONTEXT            m_pfn_glwidget_create_context;
+#if 0
+  PFN_GLWIDGET_GETCONTEXT               m_pfn_glwidget_get_context;
+#endif
+};
+
+#endif