]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bkgrnd2d/plugin.h
netradiant: strip 16-bit png to 8-bit, fix #153
[xonotic/netradiant.git] / contrib / bkgrnd2d / plugin.h
index 9a72f9661895264b6d29162f0922dc754d9e6de9..13ca737884e29ca048f98a0d9d6b222f81d1d483 100644 (file)
@@ -1,79 +1,79 @@
-/*\r
-Copyright (C) 2003 Reed Mideke.\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
-// bkgrnd2d Plugin\r
-//\r
-// Code by reyalP aka Reed Mideke\r
-//\r
-// Based on spritemodel source code by hydra\r
-//\r
-\r
-#ifndef _PLUGIN_H_\r
-#define _PLUGIN_H_\r
-\r
-/*!\r
-\todo need general notice about lib purpose etc.\r
-and the external dependencies (such as GLib, STL, mathlib etc.)\r
-*/\r
-\r
-#include <stdio.h>\r
-// for CPtrArray for idata.h\r
-#include "missing.h"\r
-\r
-#include "synapse.h"\r
-#include "iplugin.h"\r
-#include "itoolbar.h"\r
-#define USE_QERTABLE_DEFINE\r
-#include "qerplugin.h"\r
-#include "igl.h"\r
-#include "ifilesystem.h"\r
-#include "ientity.h"\r
-#include "idata.h"\r
-\r
-// verbose messages\r
-#define BKGRND2D_DEBUG\r
-\r
-extern _QERFuncTable_1 g_FuncTable;\r
-extern _QERQglTable g_QglTable;\r
-extern _QERFileSystemTable g_FileSystemTable;\r
-extern _QEREntityTable g_EntityTable;\r
-extern _QERAppDataTable g_DataTable;\r
-extern void *g_pMainWidget;\r
-\r
-extern CSynapseServer* g_pSynapseServer;\r
-\r
-class CSynapseClientBkgrnd2d : public CSynapseClient\r
-{\r
-public:\r
-  // CSynapseClient API\r
-  bool RequestAPI(APIDescriptor_t *pAPI);\r
-  const char* GetInfo();\r
-  const char* GetName();\r
-\r
-  CSynapseClientBkgrnd2d() { }\r
-  virtual ~CSynapseClientBkgrnd2d() { }\r
-};\r
-#define MSG_PREFIX "bkgrnd2d: "\r
-#define MSG_WARN "bkgrnd2d WARNING: "\r
-#define BKGRND2D_MINOR "bkgrnd2d"\r
-#define FILETYPE_KEY "bkgrnd2d"\r
-\r
-#endif // _PLUGIN_H_\r
+/*
+   Copyright (C) 2003 Reed Mideke.
+
+   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
+ */
+
+//
+// bkgrnd2d Plugin
+//
+// Code by reyalP aka Reed Mideke
+//
+// Based on spritemodel source code by hydra
+//
+
+#ifndef _PLUGIN_H_
+#define _PLUGIN_H_
+
+/*!
+   \todo need general notice about lib purpose etc.
+   and the external dependencies (such as GLib, STL, mathlib etc.)
+ */
+
+#include <stdio.h>
+// for CPtrArray for idata.h
+#include "missing.h"
+
+#include "synapse.h"
+#include "iplugin.h"
+#include "itoolbar.h"
+#define USE_QERTABLE_DEFINE
+#include "qerplugin.h"
+#include "igl.h"
+#include "ifilesystem.h"
+#include "ientity.h"
+#include "idata.h"
+
+// verbose messages
+#define BKGRND2D_DEBUG
+
+extern _QERFuncTable_1 g_FuncTable;
+extern _QERQglTable g_QglTable;
+extern _QERFileSystemTable g_FileSystemTable;
+extern _QEREntityTable g_EntityTable;
+extern _QERAppDataTable g_DataTable;
+extern void *g_pMainWidget;
+
+extern CSynapseServer* g_pSynapseServer;
+
+class CSynapseClientBkgrnd2d : public CSynapseClient
+{
+public:
+// CSynapseClient API
+bool RequestAPI( APIDescriptor_t *pAPI );
+const char* GetInfo();
+const char* GetName();
+
+CSynapseClientBkgrnd2d() { }
+virtual ~CSynapseClientBkgrnd2d() { }
+};
+#define MSG_PREFIX "bkgrnd2d: "
+#define MSG_WARN "bkgrnd2d WARNING: "
+#define BKGRND2D_MINOR "bkgrnd2d"
+#define FILETYPE_KEY "bkgrnd2d"
+
+#endif // _PLUGIN_H_