]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bkgrnd2d/plugin.h
Merge branch 'master' into divVerent/farplanedist-sky-fix
[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 #define USE_QERTABLE_DEFINE
45 #include "qerplugin.h"
46 #include "igl.h"
47 #include "ifilesystem.h"
48 #include "ientity.h"
49 #include "idata.h"
50
51 // verbose messages
52 #define BKGRND2D_DEBUG
53
54 extern _QERFuncTable_1 g_FuncTable;
55 extern _QERQglTable g_QglTable;
56 extern _QERFileSystemTable g_FileSystemTable;
57 extern _QEREntityTable g_EntityTable;
58 extern _QERAppDataTable g_DataTable;
59 extern void *g_pMainWidget;
60
61 extern CSynapseServer* g_pSynapseServer;
62
63 class CSynapseClientBkgrnd2d : public CSynapseClient
64 {
65 public:
66 // CSynapseClient API
67 bool RequestAPI( APIDescriptor_t *pAPI );
68 const char* GetInfo();
69 const char* GetName();
70
71 CSynapseClientBkgrnd2d() { }
72 virtual ~CSynapseClientBkgrnd2d() { }
73 };
74 #define MSG_PREFIX "bkgrnd2d: "
75 #define MSG_WARN "bkgrnd2d WARNING: "
76 #define BKGRND2D_MINOR "bkgrnd2d"
77 #define FILETYPE_KEY "bkgrnd2d"
78
79 #endif // _PLUGIN_H_