于是我写了一个八叉树结构体,如下:
struct octree{
static const int maxdepth=8;
octree* child[8];
uint32_t rgb;//candidates for the extra 8 bits: alpha, lighting, shape(to reduce size)
uint8_t shape;
~octree(){delete[] child;}
};
我担心的是析构函数......
它会调用孩子的析构函数还是我必须自己做?