#include "listnode.h"
#include "bsp.h"
#include "tll.h"
#include "mmgr.h"
Go to the source code of this file.
Functions | |
void | MakeNodeLists (BSP_node *node) |
Variables | |
int | numlistleaves |
int | numlistpartitions |
ListNode * | listnode |
LinkedList< ListNode > | LeafList |
LinkedList< ListNode > | PartitionList |
|
Definition at line 22 of file listnode.cpp. References BSP_node::backnode, BSP_node::frontnode, LinkedList< T >::Insert(), BSP_node::leaf, ListNode::linkPosition, ListNode::node, BSP_node::nodeid, numlistleaves, and numlistpartitions. Referenced by InitGL().
00023 { 00024 if (node->leaf == true) 00025 { 00026 numlistleaves++; 00027 listnode = new ListNode; 00028 listnode->node = node; 00029 listnode->linkPosition = node->nodeid; 00030 LeafList.Insert(listnode); 00031 return; 00032 } 00033 else 00034 { 00035 if (node->nodeid != 0) 00036 { 00037 numlistpartitions++; 00038 listnode = new ListNode; 00039 listnode->node = node; 00040 listnode->linkPosition = node->nodeid; 00041 PartitionList.Insert(listnode); 00042 } 00043 } 00044 MakeNodeLists(node->frontnode); 00045 MakeNodeLists(node->backnode); 00046 } |
|
Definition at line 9 of file listnode.cpp. |
|
Definition at line 8 of file listnode.cpp. |
|
Definition at line 6 of file listnode.cpp. Referenced by MakeNodeLists(). |
|
Definition at line 7 of file listnode.cpp. Referenced by MakeNodeLists(). |
|
Definition at line 10 of file listnode.cpp. |