An internal quadtree to store the texture tile associated with each terrain quad. More...
#include <TileSampler.h>
Public Member Functions | |
Tree (Tree *parent) | |
Creates a new Tree. | |
virtual | ~Tree () |
Deletes this Tree. | |
virtual void | recursiveDelete (TileSampler *owner) |
Deletes this Tree and all its subelements. | |
Public Attributes | |
Tree * | parent |
The parent quad of this quad. | |
TileCache::Tile * | t |
The texture tile associated with this quad. | |
Tree * | children [4] |
The subquads of this quad. |
An internal quadtree to store the texture tile associated with each terrain quad.
virtual proland::TileSampler::Tree::~Tree | ( | ) | [virtual] |
Deletes this Tree.
Does not delete its sub elements.
virtual void proland::TileSampler::Tree::recursiveDelete | ( | TileSampler * | owner | ) | [virtual] |
Deletes this Tree and all its subelements.
Releases all the corresponding texture tiles t.
Reimplemented in proland::TileSamplerZ::TreeZ.
The subquads of this quad.
The parent quad of this quad.
The texture tile associated with this quad.