7
/// <summary>Exposes the interface to be implemented by the host application.</summary>
8
public interface IHost {
12
/// <summary>Reports a problem to the host application.</summary>
13
/// <param name="type">The type of problem to be reported.</param>
14
/// <param name="keyValuePairs">A list of key-value pairs containing information about the problem.</param>
15
void Report(General.ReportType type, params General.ReportKeyValuePair[] keyValuePairs);
20
/// <summary>Resolves a file or folder reference into a platform-specific absolute path.</summary>
21
/// <param name="reference">The file or folder reference to resolve.</param>
22
/// <returns>The platform-specific absolute path.</returns>
23
string Resolve(Path.PathReference reference);
28
/// <summary>Exposes version 1.0 of the interface to be implemented by the host application.</summary>
29
public interface IHost10 : IHost {
33
/// <summary>Loads a texture suitable for post-processing.</summary>
34
/// <param name="origin">The origin of the texture which includes a valid path.</param>
35
/// <param name="texture">Receives the texture.</param>
36
/// <returns>The success of the operation.</returns>
37
General.Result LoadTexture(General.Origin origin, out Texture.TextureData texture);
39
/// <summary>Registers a texture with the host application.</summary>
40
/// <param name="origin">The origin of the texture which includes a valid path.</param>
41
/// <param name="parameters">The parameters for the texture.</param>
42
/// <param name="handle">Receives a handle to the texture.</param>
43
/// <returns>The success of the operation.</returns>
44
General.Result RegisterTexture(General.Origin origin, Texture.TextureParameters parameters, out Texture.TextureHandle handle);
46
/// <summary>Registers a texture with the host application.</summary>
47
/// <param name="texture">The texture to register.</param>
48
/// <param name="parameters">The parameters for the texture.</param>
49
/// <param name="handle">Receives a handle to the texture.</param>
50
/// <returns>The success of the operation.</returns>
51
General.Result RegisterTexture(Texture.TextureData texture, Texture.TextureParameters parameters, out Texture.TextureHandle handle);
56
/// <summary>Loads an object from a file, suitable for post-processing.</summary>
57
/// <param name="origin">The origin of the object which includes a valid path.</param>
58
/// <param name="obj">Receives the object.</param>
59
/// <returns>The success of the operation.</returns>
60
General.Result LoadObject(General.Origin origin, out Geometry.GenericObject obj);
65
/// <summary>Loads a sound from a file, suitable for post-processing.</summary>
66
/// <param name="origin">The origin of the sound which includes a valid path.</param>
67
/// <param name="sound">Receives the sound data.</param>
68
/// <returns>The success of the operation.</returns>
69
General.Result LoadSound(General.Origin origin, out Sound.SoundData sound);
71
/// <summary>Registers a sound with the host application.</summary>
72
/// <param name="origin">The origin of the sound which includes a valid path.</param>
73
/// <param name="handle">Receives a handle to the sound.</param>
74
/// <returns>The success of the operation.</returns>
75
General.Result RegisterSound(General.Origin origin, out Sound.SoundHandle handle);
77
/// <summary>Registers a sound with the host application.</summary>
78
/// <param name="sound">The sound data to register.</param>
79
/// <param name="handle">Receives a handle to the sound.</param>
80
/// <returns>The success of the operation.</returns>
81
General.Result RegisterSound(Sound.SoundData sound, out Sound.SoundHandle handle);
b'\\ No newline at end of file'