Convert TextureAtlas gem/builder to use Atom (#853)

* Convert TextureAtlas gem/builder to use Atom
* Convert image markup to use Atom image
This commit is contained in:
michabr
2021-05-25 14:05:03 -07:00
committed by GitHub
parent 82b4b83256
commit 713a3fd885
16 changed files with 252 additions and 258 deletions
@@ -120,14 +120,14 @@ namespace TextureAtlasNamespace
}
// Links this atlas to an image pointer
void TextureAtlasImpl::SetTexture(ITexture* image)
void TextureAtlasImpl::SetTexture(AZ::Data::Instance<AZ::RPI::Image> image)
{
// We don't need to delete the old value because the pointer is handled elsewhere
m_image = image;
}
// Returns the image linked to this atlas
ITexture* TextureAtlasImpl::GetTexture() const
AZ::Data::Instance<AZ::RPI::Image> TextureAtlasImpl::GetTexture() const
{
return m_image;
}