Exemplo n.º 1
0
        /// <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; };
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     coreAPI.BeforeRender -= DoVideoFrame;
     api = null;
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     api = null;
 }