Skip to content

Resources

Images, animated images, vector images and videos, the assets they are read from, the formats and decoders that read them, their memory cache, the file cache of JOID and the video natives. Learn: Images and media, Custom formats, Where JOID stores files.

TypeKindSummary
AnimatedResourceDecoderclassPlays an animated image, GIF, APNG, animated WebP or a format of yours, by uploading the frame of the current time.
ApngResourceAnimationReaderclassReads the frames of an animated PNG (APNG).
ApngResourceFormatclassThe built-in format of PNG files, still or animated (APNG).
AssetclassWhere the bytes of a resource, a font, a shader or a model come from, a file, the classpath, a URL or a stream, behind one stable id.
AssetLocatorclassThe registry of the asset locators, which turns any input into an Asset.
AudioListenerPositioninterfaceGives the position of the listener that the sound of placed videos fades with.
ClasspathAssetclassAn asset found in the classpath, such as a file packed in the jar of your application.
FileAssetclassAn asset read from a file on disk.
FileAssetLocatorclassThe built-in locator that turns a File into a FileAsset.
FileCacheclassThe cache folder of JOID, split into named areas whose entries expire when they go unused.
FileCacheAreaclassOne folder of the cache, whose entries are written once by key, read many times, and deleted after a period without use.
FileCacheWriterinterfaceWrites the content of a cache entry into the file it is given.
GifResourceAnimationReaderclassReads the frames of a GIF.
GifResourceFormatclassThe built-in format of GIF files, played as animated images.
HeifResourceFormatclassThe built-in format that recognizes HEIF and AVIF images, which JOID cannot decode, to fail with a clear message.
IAssetLocatorinterfaceTurns one kind of input into an Asset, so that every loader of JOID accepts it.
IResourceAnimationReaderinterfaceReads every frame of an animated image file into a ResourceAnimation.
IResourceCacheinterfaceWhere a ResourceBuilder keeps the data of its resources by id, so that two loads of the same input share it.
IResourceDecoderinterfaceReads the data of one resource, decodes it on a background thread and sends it to the GPU on the render thread.
IResourceFormatinterfaceRecognizes one file format from its first bytes and creates the decoder that reads it.
IResourcePlaybackinterfaceThe playback controls of an animated image or a video, to play, pause, seek and loop it.
MemoryResourceCacheclassThe default resource cache, which keeps the data in memory while it is used and for a while after.
RasterResourceDecoderclassDecodes a still image, PNG, JPEG, BMP, still WebP and the other formats of the bundled image readers, into one texture.
ResourceclassAn image, an animated image, a vector image or a video, loaded in the background and drawn by a resource node or DrawResource.
ResourceAnimationclassThe decoded frames of an animated image, with its size and its play count.
ResourceAnimationCanvasclassBuilds the full images of an animation from frames that update only a part of the picture, as GIF, APNG and WebP store them.
ResourceAnimationFrameclassOne full image of an animation and how long it shows.
ResourceBuilderclassCreates resources with shared default settings and a cache that makes two loads of the same input share their data.
ResourceDataclassThe shared state of one resource, its decoder, pixels, textures, size and errors, behind every Resource handle on the same input.
ResourceFormatclassThe registry of the resource formats, which picks the decoder of a file from its first bytes.
ResourcePropertiesclassThe drawing settings of a resource handle, its filtering, its mipmaps and its region.
StreamAssetclassAn asset read once from an InputStream and kept in memory, so that it can be read again.
StreamAssetLocatorclassThe built-in locator that turns an InputStream into a StreamAsset.
StringAssetLocatorclassThe built-in locator that turns a String into a URL, classpath or file asset.
SvgResourceFormatclassThe built-in format of SVG files, rendered as vector images at the size they are drawn.
UrlAssetclassAn asset read from a URL, over the network or from a file:, jar: or other scheme.
VectorResourceDecoderclassDecodes an SVG document and renders it again at the size it is drawn at, so that it stays sharp.
VideoAudioPlayerclassPlays the sound of one video through the audio bridge, in step with its frames.
VideoNativesclassInstalls the FFmpeg natives that videos need, from the classpath or downloaded once into the cache folder.
VideoNativesExceptionclassThe FFmpeg natives that videos need cannot be installed on this machine.
VideoResourceDecoderclassPlays a video file with FFmpeg, its frames into a texture and its sound through the audio bridge.
VideoResourceFormatclassThe built-in format of MP4, Matroska (MKV, WebM) and AVI files, played as videos with FFmpeg.
WebpResourceAnimationReaderclassReads the frames of an animated WebP.
WebpResourceFormatclassThe built-in format of WebP files, still or animated.

Nested types and listeners that the main types use.

TypeKindSummary
ResourceAnimationCanvas.BlendenumHow a frame combines with the canvas under it.
ResourceAnimationCanvas.DisposalenumWhat happens to the area of a frame before the next frame is drawn.

Report a problem with this page