]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/StdAfx.h
fixed eol-style
[xonotic/netradiant.git] / contrib / bobtoolz / StdAfx.h
1 /*
2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20 #ifndef __STDAFX_BOBTOOLZ__
21 #define __STDAFX_BOBTOOLZ__
22
23 #define BOBTOOLZ_MINOR "bobtoolz"
24
25 #include <gdk/gdkkeysyms.h>
26 #include <gtk/gtk.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29
30 #include "time.h"
31
32 #define NAME_MAX 255
33
34 #if defined (__linux__) || defined (__APPLE__)
35
36 #include <GL/glx.h>
37
38 typedef void* HMODULE;
39 typedef void* LPVOID;
40 typedef char* LPCSTR;
41 //typedef int   bool;
42
43
44 #define WINAPI
45 #define APIENTRY
46
47 #ifndef GUID_DEFINED
48 #define GUID_DEFINED
49 typedef struct _GUID
50 {
51   unsigned long  Data1;
52   unsigned short Data2;
53   unsigned short Data3;
54   unsigned char  Data4[8];
55 } GUID;
56
57 #define stricmp strcasecmp
58
59 #endif
60  
61 #if defined(__cplusplus)
62 #ifndef _REFGUID_DEFINED
63 #define _REFGUID_DEFINED
64 #define REFGUID             const GUID &
65 #endif // !_REFGUID_DEFINED
66 #endif
67
68 typedef struct tagRECT
69 {
70     long    left;
71     long    top;
72     long    right;
73     long    bottom;
74 } RECT, *PRECT, *LPRECT;
75
76 typedef uint UINT;
77
78 #endif // __linux__
79
80 #include "mathlib.h"
81 #include <string.h>
82 #include "qertypes.h"
83 #include <stdio.h>
84
85 #define USE_SCENEGRAPHTABLE_DEFINE
86 #include "iscenegraph.h"
87
88 #define USE_QERTABLE_DEFINE
89 #include "qerplugin.h"
90 extern  _QERFuncTable_1 __QERTABLENAME;
91
92 #define USE_ENTITYTABLE_DEFINE
93 #include "ientity.h"
94 extern _QEREntityTable __ENTITYTABLENAME;
95
96 #define USE_BRUSHTABLE_DEFINE
97 #include "ibrush.h"
98 extern  _QERBrushTable __BRUSHTABLENAME;
99
100 #define USE_PATCHTABLE_DEFINE
101 #include "ipatch.h"
102 extern  _QERPatchTable __PATCHTABLENAME;
103
104 #define USE_SHADERSTABLE_DEFINE
105 #include "ishaders.h"
106 extern _QERShadersTable __SHADERSTABLENAME;
107
108 #define USE_QGLTABLE_DEFINE
109 #include "igl.h"
110 extern  _QERQglTable __QGLTABLENAME;
111
112 #include "ibspfrontend.h"
113 extern  _QERAppBSPFrontendTable g_BSPTable;
114
115 #include "iui.h"
116 extern  _QERUITable                       g_MessageTable;
117
118 #define USE_RENDERTABLE_DEFINE
119 #include "irender.h"
120
121 #define USE_SELECTIONTABLE_DEFINE
122 #include "iselection.h"
123
124 #include "itoolbar.h"
125
126
127 #include "iplugin.h"
128
129 #define MAX_ROUND_ERROR 0.05
130
131 #include "itexdef.h"
132
133 struct _QERFaceData
134 {
135   vec3_t m_p0;
136   vec3_t m_p1;
137   vec3_t m_p2;
138   texdef_t m_texdef;
139 };
140
141 #endif