|
#ifndef _TREENODE_H_INCLUDED_
#define _TREENODE_H_INCLUDED_
class FTBitmapChar;
class TreeNode
{
public:
TreeNode(int x, int y, int width, int height);
~TreeNode();
bool Add(FTBitmapChar* pFTBitmapChar);
bool IsEmpty() const
{
return m_pLeaf1 == NULL && m_pLeaf2 == NULL;
}
private:
void CreateBranches(FTBitmapChar* pFTBitmapChar);
bool Fits(FTBitmapChar* pFTBitmapChar);
int m_x;
int m_y;
int m_width;
int m_height;
TreeNode* m_pLeaf1;
TreeNode* m_pLeaf2;
};
#endif // _TREENODE_H_INCLUDED_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.