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