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::doesSourceFit ( Source source  ) 

bool osgUtil::Optimizer::TextureAtlasBuilder::Atlas::addSource ( Source source  ) 

void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::clampToNearestPowerOfTwoSize (  ) 

void osgUtil::Optimizer::TextureAtlasBuilder::Atlas::copySources (  ) 


Member Data Documentation

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_maximumAtlasWidth

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_maximumAtlasHeight

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_margin

osg::ref_ptr<osg::Texture2D> osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_texture

osg::ref_ptr<osg::Image> osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_image

SourceList osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_sourceList

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_x

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_y

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_width

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::Atlas::_height


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:51 2007 for the OpenSceneGraph by doxygen 1.5.3.