Assets

:= []

Assets module - host-owned textures and other resources.

A Texture is a refcounted Box containing a small handle plus metadata. The box memory is managed by Roc; the underlying raylib texture is owned by the host and unloaded at shutdown.

load_texture_raw! : Str => LoadTextureRawResult

Raw hosted effect. The host returns handle 0 on load failure.

load_texture! : Str => Try(Texture, [TextureLoadFailed, ..])

Load an image file into GPU texture memory.

info : Texture -> TextureInfo