/// <summary>Registers a sound and returns a handle to the sound.</summary> /// <param name="path">The path to the file or folder that contains the sound.</param> /// <param name="handle">Receives a handle to the sound.</param> /// <returns>Whether loading the sound was successful.</returns> public virtual bool RegisterSound(Path.PathReference path, out SoundHandle handle) { handle = null; return(false); }
/// <summary>Registers a texture and returns a handle to the texture.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <param name="parameters">The parameters that specify how to process the texture.</param> /// <param name="handle">Receives the handle to the texture.</param> /// <returns>Whether loading the texture was successful.</returns> public virtual bool RegisterTexture(Path.PathReference path, TextureParameters parameters, out TextureHandle handle) { handle = null; return(false); }
/// <summary>Loads a sound and returns the sound data.</summary> /// <param name="path">The path to the file or folder that contains the sound.</param> /// <param name="sound">Receives the sound.</param> /// <returns>Whether loading the sound was successful.</returns> public virtual bool LoadSound(Path.PathReference path, out Sound sound) { sound = null; return(false); }
/// <summary>Queries the dimensions of a texture.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <param name="width">Receives the width of the texture.</param> /// <param name="height">Receives the height of the texture.</param> /// <returns>Whether querying the dimensions was successful.</returns> public virtual bool QueryTextureDimensions(Path.PathReference path, out int width, out int height) { width = 0; height = 0; return(false); }
/// <summary>Loads a texture and returns the texture data.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <param name="parameters">The parameters that specify how to process the texture.</param> /// <param name="texture">Receives the texture.</param> /// <returns>Whether loading the texture was successful.</returns> public virtual bool LoadTexture(Path.PathReference path, TextureParameters parameters, out Texture texture) { texture = null; return(false); }
/// <summary>Loads an object and returns the object data.</summary> /// <param name="path">The path to the file or folder that contains the object.</param> /// <param name="obj">Receives the object.</param> /// <returns>Whether loading the object was successful.</returns> public virtual bool LoadObject(Path.PathReference path, out AbstractObject obj) { obj = null; return(false); }
/// <summary>Registers an object and returns a handle to the object.</summary> /// <param name="path">The path to the file or folder that contains the object.</param> /// <param name="handle">Receives a handle to the object.</param> /// <returns>Whether loading the object was successful.</returns> public virtual bool RegisterObject(Path.PathReference path, out ObjectHandle handle) { handle = null; return(false); }
/// <summary>Checks whether the plugin can load the specified object.</summary> /// <param name="path">The path to the file or folder that contains the object.</param> /// <returns>Whether the plugin can load the specified object.</returns> public abstract bool CanLoadObject(Path.PathReference path);
/// <summary>Loads the specified object.</summary> /// <param name="path">The path to the file or folder that contains the object.</param> /// <param name="obj">Receives the object.</param> /// <returns>Whether loading the object was successful.</returns> public abstract bool LoadObject(Path.PathReference path, out Object obj);
/// <summary>Loads the specified texture.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <param name="texture">Receives the texture.</param> /// <returns>Whether loading the texture was successful.</returns> public abstract bool LoadTexture(Path.PathReference path, out Texture texture);
/// <summary>Queries the dimensions of a texture.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <param name="width">Receives the width of the texture.</param> /// <param name="height">Receives the height of the texture.</param> /// <returns>Whether querying the dimensions was successful.</returns> public abstract bool QueryTextureDimensions(Path.PathReference path, out int width, out int height);
/// <summary>Checks whether the plugin can load the specified texture.</summary> /// <param name="path">The path to the file or folder that contains the texture.</param> /// <returns>Whether the plugin can load the specified texture.</returns> public abstract bool CanLoadTexture(Path.PathReference path);
/// <summary>Loads the specified sound.</summary> /// <param name="path">The path to the file or folder that contains the sound.</param> /// <param name="sound">Receives the sound.</param> /// <returns>Whether loading the sound was successful.</returns> public abstract bool LoadSound(Path.PathReference path, out Sound sound);
/// <summary>Checks whether the plugin can load the specified sound.</summary> /// <param name="path">The path to the file or folder that contains the sound.</param> /// <returns>Whether the plugin can load the specified sound.</returns> public abstract bool CanLoadSound(Path.PathReference path);