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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user