indigo.platform.assets

Type members

Classlikes

final class AssetCollection(val images: List[LoadedImageAsset], val texts: List[LoadedTextAsset], val sounds: List[LoadedAudioAsset], val fonts: List[LoadedFontAsset])
Companion
object
Companion
class
object AssetLoader
final case class Atlas(size: PowerOfTwo, imageData: Option[ImageData])
object AtlasId
final case class AtlasIndex(id: AtlasId, offset: Point, size: Point)
final case class AtlasLookupResult(name: AssetName, atlasId: AtlasId, atlas: Atlas, offset: Point)
Companion
object
Companion
class
final case class AtlasQuadEmpty(size: PowerOfTwo) extends AtlasQuadTree
final case class AtlasQuadNode(size: PowerOfTwo, atlas: AtlasSum) extends AtlasQuadTree
sealed trait AtlasQuadTree
Companion
object
Companion
class
sealed trait AtlasSum
final case class AtlasTexture(imageRef: ImageRef) extends AtlasSum
final case class ImageRef(name: AssetName, width: Int, height: Int, tag: Option[AssetTag])
final case class LoadedAudioAsset(name: AssetName, data: AudioBuffer)
final case class LoadedFontAsset(name: AssetName)
final case class LoadedImageAsset(name: AssetName, data: Image, tag: Option[AssetTag])
final case class LoadedTextAsset(name: AssetName, data: String)
final case class TextureAndCoords(imageRef: ImageRef, coords: Point)
object TextureAtlas
Companion
class
final case class TextureAtlas(atlases: Map[AtlasId, Atlas], legend: Map[AssetName, AtlasIndex])
Companion
object
final case class TextureDetails(imageRef: ImageRef, size: PowerOfTwo, tag: Option[AssetTag])
final case class TextureMap(size: PowerOfTwo, textureCoords: List[TextureAndCoords])

Types

opaque type AtlasId