そこで、次のようにoctree構造体を作成しました。
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;}
};
私が抱えている懸念はデストラクタにあります...
それは子供たちのデストラクタと呼ばれるのでしょうか、それとも私はそれを自分でしなければならないのでしょうか?