2 PrtView plugin for GtkRadiant
3 Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com
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.
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.
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
39 CBspPoint *inner_point;
40 float fp_color_random[4];
46 qboolean Build(char *def);
60 void Load(); // use filename in fn
74 float width_3d; // in 8'ths
77 float fp_color_fog[4];
85 float width_2d; // in 8'ths
93 unsigned int node_count;
94 unsigned int portal_count;
97 class CPortalsRender : public IGL2DWindow, public IGL3DWindow {
101 virtual ~CPortalsRender();
107 CRITICAL_SECTION protect;
112 // IGL2DWindow IGL3DWindow interface
113 void IncRef() { refCount++; }
114 void DecRef() { refCount--; if (refCount <= 0) delete this; }
115 void Draw2D( VIEWTYPE vt );
120 // void Sys_Printf (char *text, ...);
122 extern CPortals portals;
123 extern CPortalsRender render;
125 #endif // _PORTALS_H_