]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake2/extra/qe4/map.h
Merge branch 'NateEag-master-patch-12920' into 'master'
[xonotic/netradiant.git] / tools / quake2 / extra / qe4 / map.h
1 /*
2 ===========================================================================
3 Copyright (C) 1997-2006 Id Software, Inc.
4
5 This file is part of Quake 2 Tools source code.
6
7 Quake 2 Tools source code is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Quake 2 Tools source code is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Quake 2 Tools source code; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 ===========================================================================
21 */
22
23 // map.h -- the state of the current world that all views are displaying
24
25 extern  char            currentmap[1024];
26
27 // head/tail of doubly linked lists
28 extern  brush_t active_brushes; // brushes currently being displayed
29 extern  brush_t selected_brushes;       // highlighted
30 extern  face_t  *selected_face;
31 extern  brush_t *selected_face_brush;
32 extern  brush_t filtered_brushes;       // brushes that have been filtered or regioned
33
34 extern  entity_t        entities;
35 extern  entity_t        *world_entity;  // the world entity is NOT included in
36                                                                         // the entities chain
37
38 extern  qboolean        modified;               // for quit confirmations
39
40 extern  vec3_t  region_mins, region_maxs;
41 extern  qboolean        region_active;
42
43 void    Map_LoadFile (char *filename);
44 void    Map_SaveFile (char *filename, qboolean use_region);
45 void    Map_New (void);
46 void    Map_BuildBrushData(void);
47
48 void    Map_RegionOff (void);
49 void    Map_RegionXY (void);
50 void    Map_RegionTallBrush (void);
51 void    Map_RegionBrush (void);
52 void    Map_RegionSelectedBrushes (void);
53 qboolean Map_IsBrushFiltered (brush_t *b);