mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 05:01:26 +00:00
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
|
/*
|
||
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 2 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; if not, write to the Free Software
|
||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
|
||
|
See file, 'COPYING', for details.
|
||
|
|
||
|
$Id$
|
||
|
*/
|
||
|
|
||
|
#ifndef qfbsp_portals_h
|
||
|
#define qfbsp_portals_h
|
||
|
|
||
|
struct node_s;
|
||
|
|
||
|
typedef struct portal_s {
|
||
|
int planenum;
|
||
|
struct node_s *nodes[2]; // [0] = front side of planenum
|
||
|
struct portal_s *next[2];
|
||
|
struct winding_s *winding;
|
||
|
} portal_t;
|
||
|
|
||
|
extern struct node_s outside_node; // portals outside the world face this
|
||
|
|
||
|
void PortalizeWorld (struct node_s *headnode);
|
||
|
void PortalizeWorldDetail (struct node_s *headnode); // stop at detail nodes
|
||
|
void WritePortalfile (struct node_s *headnode);
|
||
|
void FreeAllPortals (struct node_s *node);
|
||
|
|
||
|
#endif//qfbsp_portals_h
|