savoiardi/loader
Typed constructors for the Three.js loader objects used by Savoiardi.
Loaders are kept in their own module so the higher-level geometry, texture, audio, and object APIs can share them without exposing raw JavaScript values.
Types
Loads audio buffers.
pub type AudioLoader
Loads cube textures from six image URLs.
pub type CubeTextureLoader
Loads fonts used by text geometry.
pub type FontLoader
Loads GLTF models.
pub type GLTFLoader
pub type LoadError {
EmptyUrl
InvalidUrl(url: String, message: String)
HttpError(url: String, status: Int, status_text: String)
ResourceError(url: String)
ParseError(message: String)
LoadFailure(message: String)
}
Constructors
-
EmptyUrl -
InvalidUrl(url: String, message: String) -
HttpError(url: String, status: Int, status_text: String) -
ResourceError(url: String) -
ParseError(message: String) -
LoadFailure(message: String)
Loads 2D textures.
pub type TextureLoader