doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
portals.cpp File Reference
#include "../../../idlib/precompiled.h"
#include "dmap.h"

Go to the source code of this file.

Macros

#define SIDESPACE   8
 
#define BASE_WINDING_EPSILON   0.001f
 
#define SPLIT_WINDING_EPSILON   0.001f
 

Functions

uPortal_tAllocPortal (void)
 
void FreePortal (uPortal_t *p)
 
void AddPortalToNodes (uPortal_t *p, node_t *front, node_t *back)
 
void RemovePortalFromNode (uPortal_t *portal, node_t *l)
 
void PrintPortal (uPortal_t *p)
 
idWindingBaseWindingForNode (node_t *node)
 
void CalcNodeBounds (node_t *node)
 
void MakeTreePortals_r (node_t *node)
 
void MakeTreePortals (tree_t *tree)
 
void FloodPortals_r (node_t *node, int dist)
 
bool PlaceOccupant (node_t *headnode, idVec3 origin, uEntity_t *occupant)
 
bool FloodEntities (tree_t *tree)
 
void FloodAreas_r (node_t *node)
 
void FindAreas_r (node_t *node)
 
void CheckAreas_r (node_t *node)
 
void ClearAreas_r (node_t *node)
 
void FloodAreas (uEntity_t *e)
 
void FillOutside_r (node_t *node)
 
void FillOutside (uEntity_t *e)
 

Variables

interAreaPortal_t interAreaPortals [MAX_INTER_AREA_PORTALS]
 
int numInterAreaPortals
 
int c_active_portals
 
int c_peak_portals
 
int c_tinyportals
 
int c_floodedleafs
 

Macro Definition Documentation

#define BASE_WINDING_EPSILON   0.001f

Definition at line 249 of file portals.cpp.

#define SIDESPACE   8

Definition at line 179 of file portals.cpp.

#define SPLIT_WINDING_EPSILON   0.001f

Definition at line 250 of file portals.cpp.

Function Documentation

void AddPortalToNodes ( uPortal_t p,
node_t front,
node_t back 
)

Definition at line 106 of file portals.cpp.

uPortal_t* AllocPortal ( void  )

Definition at line 47 of file portals.cpp.

idWinding* BaseWindingForNode ( node_t node)

Definition at line 252 of file portals.cpp.

void CalcNodeBounds ( node_t node)

Definition at line 444 of file portals.cpp.

void CheckAreas_r ( node_t node)

Definition at line 802 of file portals.cpp.

void ClearAreas_r ( node_t node)

Definition at line 820 of file portals.cpp.

void FillOutside ( uEntity_t e)

Definition at line 990 of file portals.cpp.

void FillOutside_r ( node_t node)

Definition at line 959 of file portals.cpp.

void FindAreas_r ( node_t node)

Definition at line 776 of file portals.cpp.

void FloodAreas ( uEntity_t e)

Definition at line 924 of file portals.cpp.

void FloodAreas_r ( node_t node)

Definition at line 734 of file portals.cpp.

bool FloodEntities ( tree_t tree)

Definition at line 580 of file portals.cpp.

void FloodPortals_r ( node_t node,
int  dist 
)

Definition at line 520 of file portals.cpp.

void FreePortal ( uPortal_t p)

Definition at line 62 of file portals.cpp.

void MakeTreePortals ( tree_t tree)

Definition at line 498 of file portals.cpp.

void MakeTreePortals_r ( node_t node)

Definition at line 466 of file portals.cpp.

bool PlaceOccupant ( node_t headnode,
idVec3  origin,
uEntity_t occupant 
)

Definition at line 546 of file portals.cpp.

void PrintPortal ( uPortal_t p)

Definition at line 162 of file portals.cpp.

void RemovePortalFromNode ( uPortal_t portal,
node_t l 
)

Definition at line 126 of file portals.cpp.

Variable Documentation

int c_active_portals

Definition at line 39 of file portals.cpp.

int c_floodedleafs

Definition at line 513 of file portals.cpp.

int c_peak_portals

Definition at line 40 of file portals.cpp.

int c_tinyportals

Definition at line 99 of file portals.cpp.

Definition at line 35 of file portals.cpp.

int numInterAreaPortals

Definition at line 36 of file portals.cpp.