2 PrtView plugin for GtkRadiant
\r
3 Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com
\r
5 This library is free software; you can redistribute it and/or
\r
6 modify it under the terms of the GNU Lesser General Public
\r
7 License as published by the Free Software Foundation; either
\r
8 version 2.1 of the License, or (at your option) any later version.
\r
10 This library is distributed in the hope that it will be useful,
\r
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
13 Lesser General Public License for more details.
\r
15 You should have received a copy of the GNU Lesser General Public
\r
16 License along with this library; if not, write to the Free Software
\r
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 #ifndef __PRTVIEW_AFX_H__
\r
21 #define __PRTVIEW_AFX_H__
\r
23 #include <gtk/gtk.h>
\r
25 #if defined(__linux__) || defined(__APPLE__)
\r
28 // Necessary for proper boolean type declaration
\r
29 #include "qertypes.h"
\r
31 typedef guint32 COLORREF;
\r
32 typedef void* LPVOID;
\r
33 typedef char* LPCSTR;
\r
34 typedef void* HMODULE;
\r
37 #define RGB(r, g, b) ((guint32)(((guint8) (r) | ((guint16) (g) << 8))|(((guint32) (guint8) (b)) << 16)))
\r
38 #define GetRValue(rgb) ((guint8)(rgb))
\r
39 #define GetGValue(rgb) ((guint8)(((guint16)(rgb)) >> 8))
\r
40 #define GetBValue(rgb) ((guint8)((rgb)>>16))
\r
42 #define _MAX_PATH PATH_MAX
\r
49 #include "synapse.h"
\r
52 #include "iplugin.h"
\r
53 #define USE_QERTABLE_DEFINE
\r
54 #include "qerplugin.h"
\r
55 #include "ibspfrontend.h"
\r
57 #include "version.h"
\r
60 #include "gtkdlgs.h"
\r
61 #include "prtview.h"
\r
62 #include "portals.h"
\r
64 #define MSG_PREFIX "Portal Viewer plugin: "
\r
65 #define PRTVIEW_MINOR "prtview"
\r
67 #define UPDATE_2D (W_XY | W_XZ | W_YZ)
\r
68 #define UPDATE_3D (W_CAMERA)
\r
69 #define UPDATE_ALL (UPDATE_2D | UPDATE_3D)
\r
71 int INIGetInt(char *key, int def);
\r
72 void INISetInt(char *key, int val, char *comment = NULL);
\r
74 extern bool interfaces_started;
\r
76 extern _QERFuncTable_1 g_FuncTable;
\r
77 extern _QERQglTable g_QglTable;
\r