Revision 194,
535 bytes
checked in by mattausch, 19 years ago
(diff) |
started with bsp viewcells
|
Line | |
---|
1 | #include "Plane3.h" |
---|
2 | #include "ViewCellBsp.h" |
---|
3 | #include "Mesh.h" |
---|
4 | |
---|
5 | class ViewCell; |
---|
6 | |
---|
7 | //namespace GtpVisibilityPreprocessor { |
---|
8 | |
---|
9 | bool BSPNode::IsRoot() const |
---|
10 | { |
---|
11 | return mParent == NULL; |
---|
12 | } |
---|
13 | |
---|
14 | void BSPNode::SplitPoly(Plane3 *plane, Mesh *viewcell) |
---|
15 | { |
---|
16 | } |
---|
17 | |
---|
18 | bool BSPInterior::IsLeaf() const |
---|
19 | { |
---|
20 | return false; |
---|
21 | } |
---|
22 | |
---|
23 | BSPLeaf::BSPLeaf(ViewCell *viewCell): mViewCell(viewCell) |
---|
24 | { |
---|
25 | } |
---|
26 | |
---|
27 | bool BSPLeaf::IsLeaf() const |
---|
28 | { |
---|
29 | return true; |
---|
30 | } |
---|
31 | |
---|
32 | BSPTree::BSPTree(ViewCell *cell) |
---|
33 | { |
---|
34 | mRootCell = cell; |
---|
35 | mRoot = new BSPLeaf(mRootCell); |
---|
36 | } |
---|
37 | |
---|
38 | //} // GtpVisibilityPreprocessor |
---|
Note: See
TracBrowser
for help on using the repository browser.