OpenSceneGraph
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgUtil::Optimizer::TextureAtlasBuilder Class Reference

Texture Atlas Builder creates a set of textures/images which each contain multiple images. More...

Collaboration diagram for osgUtil::Optimizer::TextureAtlasBuilder:
Collaboration graph
[legend]

Classes

class  Atlas
 
class  Source
 

Public Member Functions

void reset ()
 
void setMaximumAtlasSize (int width, int height)
 
int getMaximumAtlasWidth () const
 
int getMaximumAtlasHeight () const
 
void setMargin (int margin)
 
int getMargin () const
 
void addSource (const osg::Image *image)
 
void addSource (const osg::Texture2D *texture)
 
unsigned int getNumSources () const
 
const osg::ImagegetSourceImage (unsigned int i)
 
const osg::Texture2DgetSourceTexture (unsigned int i)
 
void buildAtlas ()
 
osg::ImagegetImageAtlas (unsigned int i)
 
osg::Texture2DgetTextureAtlas (unsigned int i)
 
osg::Matrix getTextureMatrix (unsigned int i)
 
osg::ImagegetImageAtlas (const osg::Image *image)
 
osg::Texture2DgetTextureAtlas (const osg::Image *image)
 
osg::Matrix getTextureMatrix (const osg::Image *image)
 
osg::ImagegetImageAtlas (const osg::Texture2D *textue)
 
osg::Texture2DgetTextureAtlas (const osg::Texture2D *texture)
 
osg::Matrix getTextureMatrix (const osg::Texture2D *texture)
 

Protected Types

typedef std::vector< osg::ref_ptr< Source > > SourceList
 
typedef std::vector< osg::ref_ptr< Atlas > > AtlasList
 

Protected Member Functions

SourcegetSource (const osg::Image *image)
 
SourcegetSource (const osg::Texture2D *texture)
 

Protected Attributes

int _maximumAtlasWidth
 
int _maximumAtlasHeight
 
int _margin
 
SourceList _sourceList
 
AtlasList _atlasList
 

Detailed Description

Texture Atlas Builder creates a set of textures/images which each contain multiple images.

Texture Atlas' are used to make it possible to use much wider batching of data.


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