Package-level declarations

Types

Link copied to clipboard
class MimeType(val mime: String, val exts: List<String>)
Link copied to clipboard
interface Path
Link copied to clipboard
value class PathInfo(val fullPath: String)
Link copied to clipboard
data class VfsFile(val vfs: Vfs, val path: String) : VfsNamed

A virtual file or directory on a file system.

Link copied to clipboard
open class VfsNamed(val pathInfo: PathInfo) : Path

Functions

Link copied to clipboard
Link copied to clipboard

/path\to/file.1.ext -> file.1.newext

Link copied to clipboard
Link copied to clipboard

/path\to/file.ext -> /path\to/file.newext

Link copied to clipboard

/path\to/file.1.ext -> listOf("", "path", "to", "file.1.ext")

Link copied to clipboard

/path\to/file.1.ext -> listOf("/path", "/path/to", "/path/to/file.1.ext")

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Loads a TextureAtlas from the given path. Currently, supports only JSON atlas files.

Link copied to clipboard
actual suspend fun VfsFile.readAudioClip(): AudioClip

Loads audio from the path as an AudioClip.

expect suspend fun VfsFile.readAudioClip(): AudioClip

Loads audio from the path as an AudioClip.

actual suspend fun VfsFile.readAudioClip(): AudioClip

Loads audio from the path as an AudioClip.

actual suspend fun VfsFile.readAudioClip(): AudioClip

Loads audio from the path as an AudioClip.

Link copied to clipboard
actual suspend fun VfsFile.readAudioStream(): AudioStream

Streams audio from the path as an AudioStream.

expect suspend fun VfsFile.readAudioStream(): AudioStream

Streams audio from the path as an AudioStream.

actual suspend fun VfsFile.readAudioStream(): AudioStream

Streams audio from the path as an AudioStream.

actual suspend fun VfsFile.readAudioStream(): AudioStream

Streams audio from the path as an AudioStream.

Link copied to clipboard
suspend fun VfsFile.readBitmapFont(filter: TexMagFilter = TexMagFilter.NEAREST, mipmaps: Boolean = true, preloadedTextures: List<TextureSlice> = listOf()): BitmapFont

Reads a bitmap font.

Link copied to clipboard
suspend fun VfsFile.readGltfModel(loadTexturesAsynchronously: Boolean = false): Model

Loads a glTF / glb model from the path and converts it to a Model.

Link copied to clipboard
suspend fun VfsFile.readLDtkMapLoader(atlas: TextureAtlas? = null, tilesetBorder: Int = 2): LDtkMapLoader

Reads the VfsFile as a LDtkMapLoader. This will read the LDtk file and create a loader to allow flexible loading of LDtkWorld or LDtkLevel. This loader should be cached and reused when loading separate levels.

Link copied to clipboard
actual suspend fun VfsFile.readPixmap(): Pixmap
expect suspend fun VfsFile.readPixmap(): Pixmap

Loads an image from the path as a Pixmap.

actual suspend fun VfsFile.readPixmap(): Pixmap

Loads an image from the path as a Pixmap.

actual suspend fun VfsFile.readPixmap(): Pixmap
Link copied to clipboard
actual suspend fun VfsFile.readTexture(minFilter: TexMinFilter, magFilter: TexMagFilter, mipmaps: Boolean): Texture

Loads an image from the path as a Texture. This will call Texture.prepare before returning!

expect suspend fun VfsFile.readTexture(minFilter: TexMinFilter = TexMinFilter.NEAREST, magFilter: TexMagFilter = TexMagFilter.NEAREST, mipmaps: Boolean = true): Texture

Loads an image from the path as a Texture. This will call Texture.prepare before returning!

actual suspend fun VfsFile.readTexture(minFilter: TexMinFilter, magFilter: TexMagFilter, mipmaps: Boolean): Texture

Loads an image from the path as a Texture. This will call Texture.prepare before returning!

actual suspend fun VfsFile.readTexture(minFilter: TexMinFilter, magFilter: TexMagFilter, mipmaps: Boolean): Texture

Loads an image from the path as a Texture. This will call Texture.prepare before returning!

Link copied to clipboard
suspend fun VfsFile.readTiledMap(atlas: TextureAtlas? = null, tilesetBorder: Int = 2, mipmaps: Boolean = true): TiledMap

Reads the VfsFile as a TiledMap. Any loaders and assets will be cached for reuse/reloading.

Link copied to clipboard
suspend fun VfsFile.readTtfFont(chars: String = CharacterSets.LATIN_ALL): TtfFont
Link copied to clipboard
Link copied to clipboard
actual suspend fun VfsFile.writePixmap(pixmap: Pixmap)
expect suspend fun VfsFile.writePixmap(pixmap: Pixmap)

Write pixmap to disk.

actual suspend fun VfsFile.writePixmap(pixmap: Pixmap)
actual suspend fun VfsFile.writePixmap(pixmap: Pixmap)

Properties

Link copied to clipboard

/path\to/file.ext -> file.ext

Link copied to clipboard
Link copied to clipboard

/path\to/file.1.EXT -> 1.EXT

Link copied to clipboard

/path\to/file.1.EXT -> 1.ext

Link copied to clipboard

/path\to/file.1.EXT -> EXT

Link copied to clipboard

/path\to/file.1.EXT -> ext

Link copied to clipboard

/path\to/file.ext -> /path\to

Link copied to clipboard

/path\to/file.ext -> /path/to/

Link copied to clipboard

/path\to/file.1.ext -> /path\to/file.1.ext

Link copied to clipboard

/path\to/file.1.ext -> /path\to/file.1

Link copied to clipboard

/path\to/file.ext -> /path/to/file.ext

Link copied to clipboard

/path\to/file.ext -> /path\to/file

Link copied to clipboard

/path\to/file.1.jpg -> MimeType("image/jpeg", listOf("jpg", "jpeg"))

Link copied to clipboard

/path\to/file.ext -> /path\to

Link copied to clipboard