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