UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1
4
5
/*
6
All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8
Copyright (C) 1997-2001 Id Software, Inc.
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19
See the GNU General Public License for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, write to the Free Software
23
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25
*/
26
27
#pragma once
28
29
#include "
../../shared/mathlib.h
"
30
#include "
../../shared/defines.h
"
31
#include "
common/polylib.h
"
32
33
typedef
struct
brush_texture_s {
34
vec2_t
shift
;
35
vec_t
rotate
;
36
vec2_t
scale
;
37
char
name
[
MAX_TEXPATH
];
38
uint32_t
surfaceFlags
;
39
int
value
;
40
}
brush_texture_t
;
41
42
typedef
struct
face_s {
43
struct
face_s*
next
;
44
48
struct
face_s*
merged
;
49
struct
face_s*
split
[2];
50
51
struct
portal_s*
portal
;
52
int
texinfo
;
53
uint16_t
planenum
;
54
uint32_t
contentFlags
;
55
winding_t
*
w
;
56
int
numpoints
;
57
int
vertexnums
[
MAXEDGES
];
58
}
face_t
;
59
60
typedef
struct
side_s {
61
uint16_t
planenum
;
62
int
texinfo
;
63
winding_t
*
winding
;
64
struct
side_s*
original
;
65
uint32_t
contentFlags
;
66
uint32_t
surfaceFlags
;
67
bool
visible
;
68
bool
tested
;
69
bool
bevel
;
70
bool
isCompositeMember
;
71
72
struct
mapbrush_s*
brush
;
73
}
side_t
;
74
75
typedef
struct
mapbrush_s {
76
int
entitynum
;
77
int
brushnum
;
78
79
uint32_t
contentFlags
;
80
81
AABB
mbBox
;
82
83
int
numsides
;
84
struct
side_s*
original_sides
;
85
89
struct
mapbrush_s**
nearBrushes
;
90
int
numNear
;
91
92
bool
skipWriteBack
;
93
94
bool
finished
;
95
}
mapbrush_t
;
96
98
typedef
struct
plane_s {
99
vec3_t
normal
;
100
vec_t
dist
;
105
int
type
;
106
vec3_t
planeVector
[3];
107
struct
plane_s*
hash_chain
;
108
}
plane_t
;
109
110
typedef
struct
portal_s {
111
plane_t
plane
;
112
struct
node_s*
onnode
;
113
struct
node_s*
nodes
[2];
114
struct
portal_s*
next
[2];
115
winding_t
*
winding
;
116
117
bool
sidefound
;
118
struct
side_s*
side
;
119
face_t
*
face
[2];
120
}
portal_t
;
AABB
Definition
aabb.h:42
defines.h
Defined CONSTANTS (Macros are elsewhere).
MAXEDGES
#define MAXEDGES
Definition
defines.h:49
MAX_TEXPATH
#define MAX_TEXPATH
Definition
defines.h:95
mathlib.h
polylib.h
brush_texture_t
Definition
map.h:33
brush_texture_t::shift
vec2_t shift
Definition
map.h:34
brush_texture_t::scale
vec2_t scale
Definition
map.h:36
brush_texture_t::name
char name[MAX_TEXPATH]
Definition
map.h:37
brush_texture_t::value
int value
Definition
map.h:39
brush_texture_t::rotate
vec_t rotate
Definition
map.h:35
brush_texture_t::surfaceFlags
uint32_t surfaceFlags
Definition
map.h:38
face_t
Definition
map.h:42
face_t::planenum
uint16_t planenum
Definition
map.h:53
face_t::merged
struct face_s * merged
Definition
map.h:48
face_t::vertexnums
int vertexnums[MAXEDGES]
Definition
map.h:57
face_t::w
winding_t * w
Definition
map.h:55
face_t::contentFlags
uint32_t contentFlags
Definition
map.h:54
face_t::portal
struct portal_s * portal
Definition
map.h:51
face_t::next
struct face_s * next
Definition
map.h:43
face_t::numpoints
int numpoints
Definition
map.h:56
face_t::split
struct face_s * split[2]
Definition
map.h:49
face_t::texinfo
int texinfo
Definition
map.h:52
mapbrush_t
Definition
map.h:75
mapbrush_t::nearBrushes
struct mapbrush_s ** nearBrushes
Definition
map.h:89
mapbrush_t::original_sides
struct side_s * original_sides
Definition
map.h:84
mapbrush_t::finished
bool finished
Definition
map.h:94
mapbrush_t::brushnum
int brushnum
Definition
map.h:77
mapbrush_t::skipWriteBack
bool skipWriteBack
Definition
map.h:92
mapbrush_t::numsides
int numsides
Definition
map.h:83
mapbrush_t::contentFlags
uint32_t contentFlags
Definition
map.h:79
mapbrush_t::mbBox
AABB mbBox
Definition
map.h:81
mapbrush_t::entitynum
int entitynum
Definition
map.h:76
mapbrush_t::numNear
int numNear
Definition
map.h:90
plane_t
Definition
map.h:98
plane_t::hash_chain
struct plane_s * hash_chain
Definition
map.h:107
plane_t::planeVector
vec3_t planeVector[3]
Definition
map.h:106
plane_t::type
int type
Definition
map.h:105
plane_t::dist
vec_t dist
Definition
map.h:100
plane_t::normal
vec3_t normal
Definition
map.h:99
portal_t
Definition
map.h:110
portal_t::nodes
struct node_s * nodes[2]
Definition
map.h:113
portal_t::sidefound
bool sidefound
Definition
map.h:117
portal_t::side
struct side_s * side
Definition
map.h:118
portal_t::winding
winding_t * winding
Definition
map.h:115
portal_t::onnode
struct node_s * onnode
Definition
map.h:112
portal_t::face
face_t * face[2]
Definition
map.h:119
portal_t::plane
plane_t plane
Definition
map.h:111
portal_t::next
struct portal_s * next[2]
Definition
map.h:114
side_t
Definition
map.h:60
side_t::planenum
uint16_t planenum
Definition
map.h:61
side_t::winding
winding_t * winding
Definition
map.h:63
side_t::surfaceFlags
uint32_t surfaceFlags
Definition
map.h:66
side_t::texinfo
int texinfo
Definition
map.h:62
side_t::visible
bool visible
Definition
map.h:67
side_t::isCompositeMember
bool isCompositeMember
Definition
map.h:70
side_t::contentFlags
uint32_t contentFlags
Definition
map.h:65
side_t::brush
struct mapbrush_s * brush
Definition
map.h:72
side_t::tested
bool tested
Definition
map.h:68
side_t::original
struct side_s * original
Definition
map.h:64
side_t::bevel
bool bevel
Definition
map.h:69
winding_t
for storing the vertices of the side of a brush or other polygon
Definition
polylib.h:30
vec_t
float vec_t
Definition
ufotypes.h:37
vec3_t
vec_t vec3_t[3]
Definition
ufotypes.h:39
vec2_t
vec_t vec2_t[2]
Definition
ufotypes.h:38
src
tools
ufo2map
map.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0