Interface IPluginRenderRegistry
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Host renderer services. Plugins never receive graphics-device types.
public interface IPluginRenderRegistry
Methods
AddHud(PluginHudDescriptor)
Adds an overlay. Dispose the returned registration to remove it.
IPluginHudRegistration AddHud(PluginHudDescriptor descriptor)
Parameters
descriptorPluginHudDescriptorThe overlay's name, title and starting placement.
Returns
- IPluginHudRegistration
The handle the plugin shows, moves and draws the overlay through.
LoadTexture(string)
Loads an image for drawing.
IPluginTexture? LoadTexture(string resourceId)
Parameters
resourceIdstringThe id of an image among the plugin's resources.
Returns
- IPluginTexture
The texture, or null when the host has no renderer or the resource is not an image it can load.