OpenSceneGraph 2.8.4
Public Member Functions | Public Attributes | Protected Member Functions
osgUtil::Optimizer::TextureAtlasBuilder::Atlas Class Reference
Inheritance diagram for osgUtil::Optimizer::TextureAtlasBuilder::Atlas:
Inheritance graph
[legend]

List of all members.

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 ()

Constructor & Destructor Documentation

osgUtil::Optimizer::TextureAtlasBuilder::Atlas::Atlas ( unsigned int  width,
unsigned  height,
unsigned  margin 
) [inline]
virtual osgUtil::Optimizer::TextureAtlasBuilder::Atlas::~Atlas ( ) [inline, protected, virtual]

Member Function Documentation

bool osgUtil::Optimizer::TextureAtlasBuilder::Atlas::addSource ( Source source)
void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::clampToNearestPowerOfTwoSize ( )
void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::copySources ( )
bool osgUtil::Optimizer::TextureAtlasBuilder::Atlas::doesSourceFit ( Source source)

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Sun Jan 8 2012 13:17:01 for the OpenSceneGraph by doxygen 1.7.4.