Open 3D Engine TextureAtlas Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
TextureAtlasNamespace::TextureAtlasRequests Class Referenceabstract

Inherits AZ::EBusTraits.

Public Member Functions

virtual void SaveAtlasToFile (const AZStd::string &outputPath, AtlasCoordinateSets &handles, int width, int height)=0
 Saves a texture atlas to file.
 
virtual TextureAtlasLoadAtlas (const AZStd::string &filePath)=0
 Tells the TextureAtlas system to load an Atlas and return a pointer for the atlas.
 
virtual void UnloadAtlas (TextureAtlas *atlas)=0
 Tells the TextureAtlas system to unload an Atlas.
 
virtual TextureAtlasFindAtlasContainingImage (const AZStd::string &filePath)=0
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single
 

Member Function Documentation

◆ FindAtlasContainingImage()

virtual TextureAtlas * TextureAtlasNamespace::TextureAtlasRequests::FindAtlasContainingImage ( const AZStd::string &  filePath)
pure virtual

Returns a pointer to the first Atlas that contains the image, or nullptr if no atlas contains it. Does not add a reference, use the notification bus to know when to unload


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