public int GetNumber()
    {
        if (_getNumberDelegate == null)
        {
            _getNumberDelegate = DynamicPluginsManager.GetFunction <GetNumberDelegate>(_id, "get_number") as GetNumberDelegate;
        }

        return(_getNumberDelegate.Invoke());
    }
    public void ProcessTexture(IntPtr handle)
    {
        if (_processTextureDelegate == null)
        {
            _processTextureDelegate = DynamicPluginsManager.GetFunction <ProcessTextureDelegate>(_id, "process_texture") as ProcessTextureDelegate;
        }

        _processTextureDelegate.Invoke(handle);
    }
    public static void Shutdown()
    {
        if (_instance == null)
        {
            return;
        }

        DynamicPluginsManager.Unregister(_instance._id);
        _instance = null;
    }
 public IntPtr GetRenderingEvent()
 {
     return(DynamicPluginsManager.GetRenderingEvent(_id));
 }
 private Plugin1()
 {
     _id = DynamicPluginsManager.FindOrRegister("plugin1");
 }