OpenSceneGraph  3.0.1
Public Types | 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 Types

enum  FitsIn { DOES_NOT_FIT_IN_ANY_ROW, FITS_IN_CURRENT_ROW, IN_NEXT_ROW }

Public Member Functions

 Atlas (int width, int height, int margin)
FitsIn doesSourceFit (Source *source)
bool addSource (Source *source)
void clampToNearestPowerOfTwoSize ()
void copySources ()

Public Attributes

int _maximumAtlasWidth
int _maximumAtlasHeight
int _margin
osg::ref_ptr< osg::Texture2D_texture
osg::ref_ptr< osg::Image_image
SourceList _sourceList
int _x
int _y
int _width
int _height
unsigned int _indexFirstOfRow
 Contain the index of the first element of the last row.

Protected Member Functions

virtual ~Atlas ()

Member Enumeration Documentation

Enumerator:
DOES_NOT_FIT_IN_ANY_ROW 
FITS_IN_CURRENT_ROW 
IN_NEXT_ROW 

Constructor & Destructor Documentation

osgUtil::Optimizer::TextureAtlasBuilder::Atlas::Atlas ( int  width,
int  height,
int  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 ( )
FitsIn osgUtil::Optimizer::TextureAtlasBuilder::Atlas::doesSourceFit ( Source source)

Member Data Documentation

Contain the index of the first element of the last row.


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

osg logo
Generated at Mon Oct 3 2011 12:39:50 for the OpenSceneGraph by doxygen 1.7.5.