doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EditorMap.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 extern char currentmap[1024];
30 
31 // head/tail of doubly linked lists
32 extern brush_t active_brushes; // brushes currently being displayed
33 extern brush_t selected_brushes; // highlighted
34 
35 
36 extern CPtrArray& g_ptrSelectedFaces;
37 extern CPtrArray& g_ptrSelectedFaceBrushes;
38 //extern face_t *selected_face;
39 //extern brush_t *selected_face_brush;
40 extern brush_t filtered_brushes; // brushes that have been filtered or regioned
41 
42 extern entity_t entities;
43 extern entity_t *world_entity; // the world entity is NOT included in
44  // the entities chain
45 
46 extern int modified; // for quit confirmations
47 
49 extern bool region_active;
50 
51 void Map_LoadFile (const char *filename);
52 bool Map_SaveFile (const char *filename, bool use_region, bool autosave = false);
53 void Map_New (void);
54 void Map_BuildBrushData(void);
55 
56 void Map_RegionOff (void);
57 void Map_RegionXY (void);
58 void Map_RegionTallBrush (void);
59 void Map_RegionBrush (void);
60 void Map_RegionSelectedBrushes (void);
61 bool Map_IsBrushFiltered (brush_t *b);
62 
63 void Map_SaveSelected(CMemFile* pMemFile, CMemFile* pPatchFile = NULL);
64 void Map_ImportBuffer (char* buf, bool renameEntities = true);
65 int Map_GetUniqueEntityID(const char *prefix, const char *eclass);
66 
67 idMapPrimitive *BrushToMapPrimitive( const brush_t *b, const idVec3 &origin );
int Map_GetUniqueEntityID(const char *prefix, const char *eclass)
Definition: EditorMap.cpp:163
void Map_LoadFile(const char *filename)
Definition: EditorMap.cpp:424
brush_t filtered_brushes
Definition: EditorMap.cpp:45
idVec3 region_maxs
brush_t selected_brushes
Definition: EditorMap.cpp:40
idVec3 origin
Definition: EditorEntity.h:37
Definition: Vector.h:316
bool Map_SaveFile(const char *filename, bool use_region, bool autosave=false)
Definition: EditorMap.cpp:653
entity_t entities
Definition: EditorMap.cpp:47
brush_t active_brushes
Definition: EditorMap.cpp:39
void Map_RegionOff(void)
Definition: EditorMap.cpp:949
void Map_RegionBrush(void)
Definition: EditorMap.cpp:1092
void Map_RegionXY(void)
Definition: EditorMap.cpp:1038
idMapPrimitive * BrushToMapPrimitive(const brush_t *b, const idVec3 &origin)
Definition: EditorMap.cpp:559
bool Map_IsBrushFiltered(brush_t *b)
Definition: EditorMap.cpp:924
#define NULL
Definition: Lib.h:88
CPtrArray & g_ptrSelectedFaces
void Map_SaveSelected(CMemFile *pMemFile, CMemFile *pPatchFile=NULL)
Definition: EditorMap.cpp:1392
int modified
GLubyte GLubyte b
Definition: glext.h:4662
idVec3 region_mins
CPtrArray & g_ptrSelectedFaceBrushes
char currentmap[1024]
Definition: EditorMap.cpp:37
void Map_New(void)
Definition: EditorMap.cpp:807
entity_t * world_entity
Definition: EditorMap.cpp:49
void Map_RegionSelectedBrushes(void)
Definition: EditorMap.cpp:1003
void Map_RegionTallBrush(void)
Definition: EditorMap.cpp:1067
bool region_active
Definition: EditorMap.cpp:835
void Map_BuildBrushData(void)
Definition: EditorMap.cpp:121
void Map_ImportBuffer(char *buf, bool renameEntities=true)
Definition: EditorMap.cpp:1145
eclass_t * eclass
Definition: EditorEntity.h:41