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::TextureAtlasImpl Class Reference

Inherits TextureAtlasNamespace::TextureAtlas.

Public Member Functions

 AZ_CLASS_ALLOCATOR (TextureAtlasImpl, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (TextureAtlasImpl, "{2CA51C61-1B5F-4480-A257-F28D8944AA35}")
 
 TextureAtlasImpl (AtlasCoordinateSets handles)
 
AtlasCoordinates GetAtlasCoordinates (const AZStd::string &handle) const override
 Retrieve a coordinate set from the Atlas by its handle.
 
void SetTexture (AZ::Data::Instance< AZ::RPI::Image > image) override
 Links this atlas to an image pointer.
 
AZ::Data::Instance< AZ::RPI::Image > GetTexture () const override
 Returns the image linked to this atlas.
 
void OverwriteMappings (TextureAtlasImpl *source)
 Replaces the mappings of this Texture Atlas Object, with the source's mappings.
 
int GetWidth () const override
 Returns the width of the atlas.
 
void SetWidth (int value)
 Sets the width of the atlas.
 
int GetHeight () const override
 Returns the height of the atlas.
 
void SetHeight (int value)
 Sets the height of the atlas.
 
- Public Member Functions inherited from TextureAtlasNamespace::TextureAtlas
 AZ_CLASS_ALLOCATOR (TextureAtlas, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (TextureAtlas, "{56FF34CF-7C5B-4BBC-9E2B-AFCA1C6C7561}")
 
virtual AtlasCoordinates GetAtlasCoordinates (const AZStd::string &handle) const =0
 Retrieve a coordinate set from the Atlas by its handle.
 
virtual void SetTexture (AZ::Data::Instance< AZ::RPI::Image > image)=0
 Links this atlas to an image pointer.
 
virtual AZ::Data::Instance< AZ::RPI::Image > GetTexture () const =0
 Returns the image linked to this atlas.
 
virtual int GetWidth () const =0
 Returns the width of the atlas.
 
virtual int GetHeight () const =0
 Returns the height of the atlas.
 

Static Public Member Functions

static bool TextureAtlasVersionConverter (AZ::SerializeContext &context, AZ::SerializeContext::DataElementNode &rootElement)
 
static void Reflect (AZ::ReflectContext *context)
 

Member Function Documentation

◆ GetAtlasCoordinates()

AtlasCoordinates TextureAtlasNamespace::TextureAtlasImpl::GetAtlasCoordinates ( const AZStd::string &  handle) const
overridevirtual

Retrieve a coordinate set from the Atlas by its handle.

Implements TextureAtlasNamespace::TextureAtlas.

◆ GetHeight()

int TextureAtlasNamespace::TextureAtlasImpl::GetHeight ( ) const
inlineoverridevirtual

Returns the height of the atlas.

Implements TextureAtlasNamespace::TextureAtlas.

◆ GetTexture()

AZ::Data::Instance< AZ::RPI::Image > TextureAtlasNamespace::TextureAtlasImpl::GetTexture ( ) const
overridevirtual

Returns the image linked to this atlas.

Implements TextureAtlasNamespace::TextureAtlas.

◆ GetWidth()

int TextureAtlasNamespace::TextureAtlasImpl::GetWidth ( ) const
inlineoverridevirtual

Returns the width of the atlas.

Implements TextureAtlasNamespace::TextureAtlas.

◆ SetTexture()

void TextureAtlasNamespace::TextureAtlasImpl::SetTexture ( AZ::Data::Instance< AZ::RPI::Image >  image)
overridevirtual

Links this atlas to an image pointer.

Implements TextureAtlasNamespace::TextureAtlas.


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