|
OSG
3.4.0
|
#include <Optimizer.h>
Classes | |
| class | Atlas |
| class | Source |
Public Member Functions | |
| TextureAtlasBuilder () | |
| 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::Image * | getSourceImage (unsigned int i) |
| const osg::Texture2D * | getSourceTexture (unsigned int i) |
| void | buildAtlas () |
| osg::Image * | getImageAtlas (unsigned int i) |
| osg::Texture2D * | getTextureAtlas (unsigned int i) |
| osg::Matrix | getTextureMatrix (unsigned int i) |
| osg::Image * | getImageAtlas (const osg::Image *image) |
| osg::Texture2D * | getTextureAtlas (const osg::Image *image) |
| osg::Matrix | getTextureMatrix (const osg::Image *image) |
| osg::Image * | getImageAtlas (const osg::Texture2D *textue) |
| osg::Texture2D * | getTextureAtlas (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 | |
| Source * | getSource (const osg::Image *image) |
| Source * | getSource (const osg::Texture2D *texture) |
Protected Attributes | |
| int | _maximumAtlasWidth |
| int | _maximumAtlasHeight |
| int | _margin |
| SourceList | _sourceList |
| AtlasList | _atlasList |
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.
Definition at line 659 of file Optimizer.h.
|
protected |
Definition at line 776 of file Optimizer.h.
|
protected |
Definition at line 732 of file Optimizer.h.
| osgUtil::Optimizer::TextureAtlasBuilder::TextureAtlasBuilder | ( | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::addSource | ( | const osg::Image * | image | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::addSource | ( | const osg::Texture2D * | texture | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::buildAtlas | ( | ) |
| osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas | ( | unsigned int | i | ) |
| osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas | ( | const osg::Image * | image | ) |
| osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas | ( | const osg::Texture2D * | textue | ) |
|
inline |
Definition at line 672 of file Optimizer.h.
|
inline |
Definition at line 669 of file Optimizer.h.
|
inline |
Definition at line 668 of file Optimizer.h.
|
inline |
Definition at line 677 of file Optimizer.h.
|
protected |
|
protected |
|
inline |
Definition at line 678 of file Optimizer.h.
|
inline |
Definition at line 679 of file Optimizer.h.
| osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas | ( | unsigned int | i | ) |
| osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas | ( | const osg::Image * | image | ) |
| osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas | ( | const osg::Texture2D * | texture | ) |
| osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix | ( | unsigned int | i | ) |
| osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix | ( | const osg::Image * | image | ) |
| osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix | ( | const osg::Texture2D * | texture | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::reset | ( | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::setMargin | ( | int | margin | ) |
| void osgUtil::Optimizer::TextureAtlasBuilder::setMaximumAtlasSize | ( | int | width, |
| int | height | ||
| ) |
|
protected |
Definition at line 782 of file Optimizer.h.
|
protected |
Definition at line 698 of file Optimizer.h.
|
protected |
Definition at line 697 of file Optimizer.h.
|
protected |
Definition at line 696 of file Optimizer.h.
|
protected |
Definition at line 781 of file Optimizer.h.
1.8.8