]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bkgrnd2d/plugin.h
ok
[xonotic/netradiant.git] / contrib / bkgrnd2d / plugin.h
1 /*\r
2 Copyright (C) 2003 Reed Mideke.\r
3 \r
4 This file is part of GtkRadiant.\r
5 \r
6 GtkRadiant is free software; you can redistribute it and/or modify\r
7 it under the terms of the GNU General Public License as published by\r
8 the Free Software Foundation; either version 2 of the License, or\r
9 (at your option) any later version.\r
10 \r
11 GtkRadiant is distributed in the hope that it will be useful,\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14 GNU General Public License for more details.\r
15 \r
16 You should have received a copy of the GNU General Public License\r
17 along with GtkRadiant; if not, write to the Free Software\r
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
19 */\r
20 \r
21 //\r
22 // bkgrnd2d Plugin\r
23 //\r
24 // Code by reyalP aka Reed Mideke\r
25 //\r
26 // Based on spritemodel source code by hydra\r
27 //\r
28 \r
29 #ifndef _PLUGIN_H_\r
30 #define _PLUGIN_H_\r
31 \r
32 /*!\r
33 \todo need general notice about lib purpose etc.\r
34 and the external dependencies (such as GLib, STL, mathlib etc.)\r
35 */\r
36 \r
37 #include <stdio.h>\r
38 // for CPtrArray for idata.h\r
39 #include "missing.h"\r
40 \r
41 #include "synapse.h"\r
42 #include "iplugin.h"\r
43 #include "itoolbar.h"\r
44 #define USE_QERTABLE_DEFINE\r
45 #include "qerplugin.h"\r
46 #include "igl.h"\r
47 #include "ifilesystem.h"\r
48 #include "ientity.h"\r
49 #include "idata.h"\r
50 \r
51 // verbose messages\r
52 #define BKGRND2D_DEBUG\r
53 \r
54 extern _QERFuncTable_1 g_FuncTable;\r
55 extern _QERQglTable g_QglTable;\r
56 extern _QERFileSystemTable g_FileSystemTable;\r
57 extern _QEREntityTable g_EntityTable;\r
58 extern _QERAppDataTable g_DataTable;\r
59 extern void *g_pMainWidget;\r
60 \r
61 extern CSynapseServer* g_pSynapseServer;\r
62 \r
63 class CSynapseClientBkgrnd2d : public CSynapseClient\r
64 {\r
65 public:\r
66   // CSynapseClient API\r
67   bool RequestAPI(APIDescriptor_t *pAPI);\r
68   const char* GetInfo();\r
69   const char* GetName();\r
70 \r
71   CSynapseClientBkgrnd2d() { }\r
72   virtual ~CSynapseClientBkgrnd2d() { }\r
73 };\r
74 #define MSG_PREFIX "bkgrnd2d: "\r
75 #define MSG_WARN "bkgrnd2d WARNING: "\r
76 #define BKGRND2D_MINOR "bkgrnd2d"\r
77 #define FILETYPE_KEY "bkgrnd2d"\r
78 \r
79 #endif // _PLUGIN_H_\r