![]() |
VR-Forces Developer's Guide
|
Per-DtDe manager that auto-creates and caches texture atlases by slot size.
DtOsgWidgetLabel uses this internally to find or create an atlas matching the widget's raster dimensions.

Public Member Functions | |
| DtTextureAtlas * | getAtlas (int slotWidth, int slotHeight) |
| virtual | ~DtTextureAtlasManager () |
| DtTextureAtlasManager (DtDe &de) | |
| DtTextureAtlasManager (const DtTextureAtlasManager &)=delete | |
| DtTextureAtlasManager & | operator= (const DtTextureAtlasManager &)=delete |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtTextureAtlasManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtTextureAtlasManager *mgr) |
Protected Attributes | |
| DtDe & | myDe |
| std::map< std::pair< int, int > , std::unique_ptr < DtTextureAtlas > > | myAtlases |
|
virtual |
| makVrv::DtTextureAtlasManager::DtTextureAtlasManager | ( | DtDe & | de | ) |
|
delete |
|
static |
Retrieve the per-DtDe instance (creates on first call).
|
static |
Register the manager instance for a DtDe.
| DtTextureAtlas* makVrv::DtTextureAtlasManager::getAtlas | ( | int | slotWidth, |
| int | slotHeight | ||
| ) |
Return an atlas for the given slot dimensions. Creates a new atlas if one does not already exist for this size.
|
delete |
|
protected |
|
protected |