Manages a disk-based texture quadtree.
More...
#include <tqt.hxx>
|
static bool | isTQTFile (const char *filename) |
| return true if the file looks like a TQT file of the right version More...
|
|
Manages a disk-based texture quadtree.
TQT::TextureQTree::TextureQTree |
( |
const char * |
filename | ) |
|
TQT::TextureQTree::~TextureQTree |
( |
| ) |
|
int TQT::TextureQTree::Depth |
( |
| ) |
const |
|
inline |
static bool TQT::TextureQTree::isTQTFile |
( |
const char * |
filename | ) |
|
|
static |
return true if the file looks like a TQT file of the right version
bool TQT::TextureQTree::isValid |
( |
| ) |
const |
|
inline |
cs237::image2d* TQT::TextureQTree::LoadImage |
( |
int |
level, |
|
|
int |
row, |
|
|
int |
col, |
|
|
bool |
flip = true |
|
) |
| |
return the image tile at the specified quadtree node.
- Parameters
-
[in] | level | the level of the node in the tree (root = 0) |
[in] | row | the row of the node on its level (north == 0) |
[in] | col | the column of the node on its level (west == 0) |
[in] | flip | should the image be flipped to match OpenGL (default true) |
- Returns
- a pointer to the image; nullptr is returned if there is an error. It is the caller's responsibility to manage the image's storage.
int TQT::TextureQTree::TileSize |
( |
| ) |
const |
|
inline |
the size of a texture tile measured in pixels (tiles are always square)
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2015/code/common/include/tqt.hxx