/// <summary> /// Creates N64 Video system with mupen64plus backend /// </summary> /// <param name="api">mupen64plus DLL that is used</param> public N64VideoProvider(mupen64plusApi core, VideoPluginSettings videosettings) { this.api = new mupen64plusVideoApi(core, videosettings); int width = 0; int height = 0; api.GetScreenDimensions(ref width, ref height); SetBufferSize( width > videosettings.Width ? width : videosettings.Width, height > videosettings.Height ? height : videosettings.Height ); core.BeforeRender += DoVideoFrame; core.BeforeRender += () => { IsVIFrame = true; }; }
public void Dispose() { coreAPI.BeforeRender -= DoVideoFrame; api = null; }
public void Dispose() { api = null; }