Package icyllis.arc3d.granite

# Class AtlasProvider

java.lang.Object
icyllis.arc3d.granite.AtlasProvider

All Implemented Interfaces:
  `AutoCloseable`

public class AtlasProvider extends Object implements AutoCloseable
AtlasProvider groups various texture atlas management algorithms together.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AtlasProvider(RecordingContext rc)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `compact()`
  `void`
  `freeGpuResources()`
  `GlyphAtlasManager`
  `getGlyphAtlasManager()`
  Returns the `GlyphAtlasManager` that provides access to persistent `DrawAtlas` instances used in glyph rendering.
  `void`
  `invalidateAtlases()`
  `void`
  `purge()`
  `void`
  `recordUploads(SurfaceDrawContext sdc)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AtlasProvider

    public AtlasProvider(RecordingContext rc)

- ## Method Details

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`

  - ### getGlyphAtlasManager

    public GlyphAtlasManager getGlyphAtlasManager()
    Returns the `GlyphAtlasManager` that provides access to persistent `DrawAtlas` instances used in glyph rendering. The `GlyphAtlasManager` is managed by this object, then the return value is a raw pointer.

  - ### recordUploads

    public void recordUploads(SurfaceDrawContext sdc)

  - ### freeGpuResources

    public void freeGpuResources()

  - ### compact

    public void compact()

  - ### purge

    public void purge()

  - ### invalidateAtlases

    public void invalidateAtlases()