Public Member Functions | |
Atlas (unsigned int width, unsigned height, unsigned margin) | |
bool | doesSourceFit (Source *source) |
bool | addSource (Source *source) |
void | clampToNearestPowerOfTwoSize () |
void | copySources () |
Public Attributes | |
unsigned int | _maximumAtlasWidth |
unsigned int | _maximumAtlasHeight |
unsigned int | _margin |
osg::ref_ptr < osg::Texture2D > | _texture |
osg::ref_ptr < osg::Image > | _image |
SourceList | _sourceList |
unsigned int | _x |
unsigned int | _y |
unsigned int | _width |
unsigned int | _height |
Protected Member Functions | |
virtual | ~Atlas () |
osgUtil::Optimizer::TextureAtlasBuilder::Atlas::Atlas | ( | unsigned int | width, | |
unsigned | height, | |||
unsigned | margin | |||
) | [inline] |
virtual osgUtil::Optimizer::TextureAtlasBuilder::Atlas::~Atlas | ( | ) | [inline, protected, virtual] |
bool osgUtil::Optimizer::TextureAtlasBuilder::Atlas::doesSourceFit | ( | Source * | source | ) |
bool osgUtil::Optimizer::TextureAtlasBuilder::Atlas::addSource | ( | Source * | source | ) |
void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::clampToNearestPowerOfTwoSize | ( | ) |
void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::copySources | ( | ) |
unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_x |
unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_y |