QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
BSP Writing Functions

Typedefs

typedef struct wadlist_s wadlist_t
 

Functions

void BeginBSPFile (void)
 Prepare the bsp file for writing. More...
 
void BumpModel (int hullnum)
 Write the model information for the clipping hull. More...
 
int FindFinalPlane (const dplane_t *p)
 Add a plane to the bsp. More...
 
void FinishBSPFile (void)
 Finalize the bsp file. More...
 
void WriteClipNodes (struct node_s *headnode)
 Write the clip nodes to the bsp file. More...
 
void WriteDrawNodes (const struct node_s *headnode)
 Write the draw nodes and the model information to the bsp file. More...
 
void WriteDrawNodes (const node_t *headnode)
 
void WriteNodePlanes (struct node_s *headnode)
 Write the planes of the map bsp to the bsp file. More...
 

Variables

int firstface
 
int headclipnode
 
int planemapping [MAX_MAP_PLANES]
 
wadlist_twadlist
 

Detailed Description

Typedef Documentation

typedef struct wadlist_s wadlist_t

Function Documentation

void BeginBSPFile ( void  )

Prepare the bsp file for writing.

Write a null edge and leaf for edge 0 and leaf 0.

void BumpModel ( int  hullnum)

Write the model information for the clipping hull.

Parameters
hullnumThe number of this clipping hull.
int FindFinalPlane ( const dplane_t p)

Add a plane to the bsp.

If the plane already exists in the bsp, return the number of the existing plane rather than adding a new one.

Parameters
pThe plane to add to the bsp.
Returns
The plane number within the bsp.
void FinishBSPFile ( void  )

Finalize the bsp file.

Writes the miptex data to the bsp file and then writes the bsp file to the file system.

void WriteClipNodes ( struct node_s headnode)

Write the clip nodes to the bsp file.

Parameters
headnodeThe root of the map bsp.
void WriteDrawNodes ( const struct node_s headnode)

Write the draw nodes and the model information to the bsp file.

Parameters
headnodeThe root of the map bsp.
void WriteDrawNodes ( const node_t headnode)
void WriteNodePlanes ( struct node_s headnode)

Write the planes of the map bsp to the bsp file.

Parameters
headnodeThe root of the map bsp.

Variable Documentation

int firstface
int headclipnode
int planemapping[MAX_MAP_PLANES]
wadlist_t* wadlist