Diligent::IDynamicTextureAtlas struct

Dynamic texture atlas.

Base classes

struct IObject
Base interface for all dynamic objects in the engine.

Derived classes

template<typename Base>
class RefCountedObject
Base class for all reference counting objects.

Public functions

auto GetTexture(IRenderDevice* pDevice, IDeviceContext* pContext) -> ITexture* pure virtual
Returns the pointer to the internal texture object.
void Allocate(Uint32 Width, Uint32 Height, ITextureAtlasSuballocation** ppSuballocation) pure virtual
Performs suballocation from the atlas.
auto GetAtlasDesc() const -> const TextureDesc& pure virtual
Returns the texture atlas description.
auto GetVersion() const -> Uint32 pure virtual
Returns internal texture array version. The version is incremented every time the array is expanded.

Function documentation

ITexture* Diligent::IDynamicTextureAtlas::GetTexture(IRenderDevice* pDevice, IDeviceContext* pContext) pure virtual

Returns the pointer to the internal texture object.

Parameters
pDevice in - Pointer to the render device that will be used to create a new internal texture array, if necessary.
pContext in - Pointer to the device context that will be used to copy existing contents to the new texture array, if necessary.

The method is not thread safe. An application must externally synchronize the access.

void Diligent::IDynamicTextureAtlas::Allocate(Uint32 Width, Uint32 Height, ITextureAtlasSuballocation** ppSuballocation) pure virtual

Performs suballocation from the atlas.

Parameters
Width in - Suballocation width.
Height in - Suballocation height.
ppSuballocation out - Memory location where pointer to the new suballocation will be stored.