Diligent::ITextureAtlasSuballocation struct

Dynamic texture atlas suballocation.

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 GetOrigin() const -> uint2 pure virtual
Returns the suballocation origin.
auto GetSlice() const -> Uint32 pure virtual
Returns the suballocation slice.
auto GetSize() const -> uint2 pure virtual
Returns the suballocation size.
auto GetUVScaleBias() const -> float4 pure virtual
Returns the texture coordinate scale (xy) and bias (zw).
auto GetAtlas() -> IDynamicTextureAtlas* pure virtual
Returns the pointer to the parent texture atlas.
void SetUserData(IObject* pUserData) pure virtual
Stores a pointer to the user-provided data object, which may later be retreived through GetUserData().
auto GetUserData() const -> IObject* pure virtual
Returns the pointer to the user data object previously set with SetUserData() method.

Function documentation

void Diligent::ITextureAtlasSuballocation::SetUserData(IObject* pUserData) pure virtual

Stores a pointer to the user-provided data object, which may later be retreived through GetUserData().

Parameters
pUserData in - Pointer to the user data object to store.

IObject* Diligent::ITextureAtlasSuballocation::GetUserData() const pure virtual

Returns the pointer to the user data object previously set with SetUserData() method.

Returns Pointer to the user data object