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
37 unsigned point_count;
\r
39 CBspPoint *inner_point;
\r
40 float fp_color_random[4];
\r
46 qboolean Build(char *def);
\r
60 void Load(); // use filename in fn
\r
74 float width_3d; // in 8'ths
\r
75 float fp_color_3d[4];
\r
77 float fp_color_fog[4];
\r
85 float width_2d; // in 8'ths
\r
86 float fp_color_2d[4];
\r
90 qboolean hint_flags;
\r
93 unsigned int node_count;
\r
94 unsigned int portal_count;
\r
97 class CPortalsRender : public IGL2DWindow, public IGL3DWindow {
\r
101 virtual ~CPortalsRender();
\r
107 CRITICAL_SECTION protect;
\r
112 // IGL2DWindow IGL3DWindow interface
\r
113 void IncRef() { refCount++; }
\r
114 void DecRef() { refCount--; if (refCount <= 0) delete this; }
\r
115 void Draw2D( VIEWTYPE vt );
\r
120 // void Sys_Printf (char *text, ...);
\r
122 extern CPortals portals;
\r
123 extern CPortalsRender render;
\r
125 #endif // _PORTALS_H_
\r