#include <bsp2d.h>
Public Methods | |
csBspTree2D () | |
Create an empty tree. | |
virtual | ~csBspTree2D () |
Destroy the whole BSP tree. | |
void | Add (csSegment2 *segment) |
Add one segment to the tree. More... | |
void* | Back2Front (const csVector2 &pos, csTree2DVisitFunc *func, void *data) |
Traverse the tree from back to front starting at the root and 'pos'. | |
void* | Front2Back (const csVector2 &pos, csTree2DVisitFunc *func, void *data) |
Traverse the tree from front to back starting at the root and 'pos'. |
This bsp tree is ment mostly for adding segments dynamically. As such it does not provide a global build routine. That can of course easily be added if needed.
|
Add one segment to the tree. The segment will be freed by this tree at some point. So don't depend on the given pointer anymore. |