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_t * | wadlist |
typedef struct wadlist_s wadlist_t |
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.
hullnum | The number of this clipping hull. |
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.
p | The plane to add to 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.
headnode | The root of the map bsp. |
Write the draw nodes and the model information to the bsp file.
headnode | The root of the map bsp. |
void WriteNodePlanes | ( | struct node_s * | headnode | ) |
Write the planes of the map bsp to the bsp file.
headnode | The root of the map bsp. |
int firstface |
int headclipnode |
int planemapping[MAX_MAP_PLANES] |
wadlist_t* wadlist |