]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/CPortals.h
baab0a7519bd045f8963438b52451d532c2a1b62
[xonotic/netradiant.git] / contrib / bobtoolz / CPortals.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 #include "StdAfx.h"     // Added by ClassView
21
22 class CBspPoint {
23 public:
24         float p[3];
25 };
26
27 class CBspPortal {
28 public:
29         CBspPortal();
30         ~CBspPortal();
31
32         unsigned point_count;
33         CBspPoint *point;
34         bool Build(char *def, unsigned int pointCnt, bool bInverse);
35 };
36
37
38 class CBspNode {
39 public:
40         CBspPortal *portal;
41         unsigned int portal_count;
42
43         bool AddPortal(char* def, unsigned int pointCnt, bool bInverse);
44         unsigned int portal_next;
45         CBspNode();
46         ~CBspNode();
47 };
48
49
50 class CPortals {
51 public:
52
53         CPortals();
54         ~CPortals();
55
56         void Load(); // use filename in fn
57         void Purge();
58
59         char fn[NAME_MAX];
60         CBspNode *node;
61
62         unsigned int node_count;
63 };