class render::SpriteTexture

Inherits: CoreVariantType<SpriteImage, true>

Render proxy counterpart of a SpriteTexture.

Public

Methods

SetAtlasTexture

void SetAtlasTexture(const SPtr<Texture> &texture)

Sets the atlas texture to utilize.

Private

Constructors

SpriteTexture

SpriteTexture(const SpriteTextureCreateInformation &createInformation, const SPtr<SpriteImageAllocation> &defaultAllocatedImage)

Methods

SyncFromCoreObject

void SyncFromCoreObject(const CoreSyncData &data, FrameAllocator &allocator) override

Update internal data from provided memory buffer that was populated with data from the owning CoreObject.

Fields

mAtlasTexture

TextureType mAtlasTexture

mUVRange

Area2 mUVRange

Range in the atlas texture that the image is to be read from, in [0, 1] range.