class
GUIVectorSpriteAtlas
Manages a cache of all VectorPath objects used by the GUI and maintains an atlas containing their rasterized representation for use by GUI.
Public
Constructors
GUIVectorSpriteAtlas
Methods
~GUIVectorSpriteAtlas
Allocate
Allocates a new sprite entry in the atlas.
If the entry with the same path
& settings combination already exists, an existing entry will be returned instead. Note that before using the texture that is part of the allocation you must call RenderDirtySprites() on the render thread.
Update
To be called once per frame on the main thread.
RenderDirtySprites
Render any sprites that are newly allocated.
Render thread only.
Private
Methods
NotifyAllocationReleased
Triggered by the GUIVectorSpriteAtlasAllocation deleter.
CreateOrFindTexture
Attempts to find an existing unused texture matching the requested size, or creates a new texture.
ReleaseTexture
Notifies the system that a texture is no longer being used.
GetNextUniqueTextureId
Returns the next available texture ID.
ReleaseTextureId
Notifies the system that the specified texture ID is no longer being used.
DestroyPendingReleasedAllocations
Cleans up any allocations that were released, but haven't yet been destroyed.