36 lines
506 B
C++
36 lines
506 B
C++
#include "xcnode.h"
|
|
|
|
XCNode::XCNode()
|
|
: XAsset()
|
|
, mPlane(new XCPlane())
|
|
, mChildren()
|
|
{
|
|
}
|
|
|
|
XCNode::~XCNode()
|
|
{
|
|
delete mPlane;
|
|
}
|
|
|
|
void XCNode::ParseData(QDataStream *aStream) {
|
|
if (GetPtr() == -1) {
|
|
// We would parse plane here, but we're using a placeholder
|
|
mPlane->ParseData(aStream);
|
|
|
|
// Parse children
|
|
*aStream
|
|
>> mChildren[0]
|
|
>> mChildren[1];
|
|
}
|
|
}
|
|
|
|
void XCNode::Clear()
|
|
{
|
|
mPlane->Clear();
|
|
mChildren.clear();
|
|
}
|
|
|
|
|
|
|
|
|