Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 /// <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);
 }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
 /// <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);
 }
Exemple #8
0
 /// <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);
Exemple #9
0
 /// <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);
Exemple #10
0
 /// <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);
Exemple #11
0
 /// <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);
Exemple #12
0
 /// <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);
Exemple #13
0
 /// <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);
Exemple #14
0
 /// <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);