]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/stdafx.h
set eol-style
[xonotic/netradiant.git] / contrib / prtview / stdafx.h
index b4afbc8e26cadbefe1f44afec629b83121e0fb09..e251fa7996dc4cf88796a8ad4f03ed46e636334d 100644 (file)
@@ -1,79 +1,79 @@
-/*\r
-PrtView plugin for GtkRadiant\r
-Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
-*/\r
-\r
-#ifndef __PRTVIEW_AFX_H__\r
-#define __PRTVIEW_AFX_H__\r
-\r
-#include <gtk/gtk.h>\r
-\r
-#if defined(__linux__) || defined(__APPLE__)\r
-#include <GL/glx.h>\r
-\r
-// Necessary for proper boolean type declaration\r
-#include "qertypes.h"\r
-\r
-typedef guint32 COLORREF;\r
-typedef void* LPVOID;\r
-typedef char* LPCSTR;\r
-typedef void* HMODULE;\r
-typedef int    BOOL;\r
-\r
-#define RGB(r, g, b) ((guint32)(((guint8) (r) | ((guint16) (g) << 8))|(((guint32) (guint8) (b)) << 16)))\r
-#define GetRValue(rgb)      ((guint8)(rgb))\r
-#define GetGValue(rgb)      ((guint8)(((guint16)(rgb)) >> 8))\r
-#define GetBValue(rgb)      ((guint8)((rgb)>>16))\r
-\r
-#define _MAX_PATH PATH_MAX\r
-\r
-#define IDOK                1\r
-#define IDCANCEL            2\r
-\r
-#endif // __linux__\r
-\r
-#include "synapse.h"\r
-\r
-// plugin\r
-#include "iplugin.h"\r
-#define USE_QERTABLE_DEFINE\r
-#include "qerplugin.h"\r
-#include "ibspfrontend.h"\r
-#include "igl.h"\r
-#include "version.h"\r
-\r
-// PrtView\r
-#include "gtkdlgs.h"\r
-#include "prtview.h"\r
-#include "portals.h"\r
-\r
-#define MSG_PREFIX "Portal Viewer plugin: "\r
-#define PRTVIEW_MINOR "prtview"\r
-\r
-#define UPDATE_2D (W_XY | W_XZ | W_YZ)\r
-#define UPDATE_3D (W_CAMERA)\r
-#define UPDATE_ALL (UPDATE_2D | UPDATE_3D)\r
-\r
-int INIGetInt(char *key, int def);\r
-void INISetInt(char *key, int val, char *comment = NULL);\r
-\r
-extern bool interfaces_started;\r
-\r
-extern _QERFuncTable_1 g_FuncTable;\r
-extern _QERQglTable g_QglTable;\r
-\r
-#endif\r
+/*
+PrtView plugin for GtkRadiant
+Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+#ifndef __PRTVIEW_AFX_H__
+#define __PRTVIEW_AFX_H__
+
+#include <gtk/gtk.h>
+
+#if defined(__linux__) || defined(__APPLE__)
+#include <GL/glx.h>
+
+// Necessary for proper boolean type declaration
+#include "qertypes.h"
+
+typedef guint32 COLORREF;
+typedef void* LPVOID;
+typedef char* LPCSTR;
+typedef void* HMODULE;
+typedef int    BOOL;
+
+#define RGB(r, g, b) ((guint32)(((guint8) (r) | ((guint16) (g) << 8))|(((guint32) (guint8) (b)) << 16)))
+#define GetRValue(rgb)      ((guint8)(rgb))
+#define GetGValue(rgb)      ((guint8)(((guint16)(rgb)) >> 8))
+#define GetBValue(rgb)      ((guint8)((rgb)>>16))
+
+#define _MAX_PATH PATH_MAX
+
+#define IDOK                1
+#define IDCANCEL            2
+
+#endif // __linux__
+
+#include "synapse.h"
+
+// plugin
+#include "iplugin.h"
+#define USE_QERTABLE_DEFINE
+#include "qerplugin.h"
+#include "ibspfrontend.h"
+#include "igl.h"
+#include "version.h"
+
+// PrtView
+#include "gtkdlgs.h"
+#include "prtview.h"
+#include "portals.h"
+
+#define MSG_PREFIX "Portal Viewer plugin: "
+#define PRTVIEW_MINOR "prtview"
+
+#define UPDATE_2D (W_XY | W_XZ | W_YZ)
+#define UPDATE_3D (W_CAMERA)
+#define UPDATE_ALL (UPDATE_2D | UPDATE_3D)
+
+int INIGetInt(char *key, int def);
+void INISetInt(char *key, int val, char *comment = NULL);
+
+extern bool interfaces_started;
+
+extern _QERFuncTable_1 g_FuncTable;
+extern _QERQglTable g_QglTable;
+
+#endif