class
render::SpriteImageAllocation
Public
Methods
~TSpriteImageAllocation<IsRenderProxy>
virtual ~TSpriteImageAllocation<IsRenderProxy>() = default
GetSize
Size2I GetSize() const
Returns the pixel size of the UV subrange covered in the texture atlas.
If the image includes animation, this will return the size of the entire animation grid.
TransformUV
Vector2 TransformUV(const Vector2 &uv) const
Transforms local UV coordinates into atlas UV coordinates.
Protected
Constructors
SpriteImageAllocation
SpriteImageAllocation(const WeakSPtr<SpriteImageType> &owner, const TextureType &atlasTexture, const Area2 &uvRange)
Methods
SyncFromCoreObject
Update internal data from provided memory buffer that was populated with data from the owning CoreObject.
Fields
mOwner
WeakSPtr<SpriteImageType> mOwner
Owner sprite image that this allocation is a part of.