A portal is the polygonal interface between two leaf nodes, regardless of the contents of the two leaf nodes.
More...
A portal is the polygonal interface between two leaf nodes, regardless of the contents of the two leaf nodes.
Decision nodes will not have portals on them, though as part of the portal building process, they will temporarily have portals.
#define PORTALFILE "PRT1-AM" |
Allocate a new portal.
Increases c_activeportals
by one.
- Returns
- Pointer to the new portal.
void FreeAllPortals |
( |
struct node_s * |
node | ) |
|
Free all portals from a node and its decendents.
- Parameters
-
node | The node from which to remove and free portals. |
Free a portal.
Only the first portal will be freed. If the portal is linked to other portals, those portals will have to be freed seperately.
Reduces c_activeportals
by one.
- Parameters
-
void PortalizeWorld |
( |
struct node_s * |
headnode | ) |
|
Builds the exact polyhedrons for the nodes and leafs.
- Parameters
-
headnode | The root of the world bsp. |
void PortalizeWorldDetail |
( |
struct node_s * |
headnode | ) |
|
Builds the exact polyhedrons for the nodes and leafs.
Like PortalizeWorld, but stop at detail nodes - Alexander Malmberg.
- Parameters
-
headnode | The root of the world bsp. |
void WritePortalfile |
( |
struct node_s * |
headnode | ) |
|
Write the map's portals to the portal file.
- Parameters
-
headnode | The root of the map's bsp. |