public RenderProgressForm(SongPanel _songPanel, string file, VideoExportOptions options) { InitializeComponent(); songPanel = _songPanel; Cancel = false; Delegate_renderVideo delegate_renderVideo = new Delegate_renderVideo(songPanel.renderVideo); IAsyncResult result = delegate_renderVideo.BeginInvoke(file, this, options, renderingFinished, delegate_renderVideo); ProgressText = "Render progress"; }
public ScreenQuad(SongPanel _songPanel) { songPanel = _songPanel; VertexDeclaration vertDecl = new VertexDeclaration(new VertexElement(0, VertexElementFormat.Vector2, VertexElementUsage.Position, 0)); vb = new DynamicVertexBuffer(songPanel.GraphicsDevice, vertDecl, 4, BufferUsage.WriteOnly); //verts = new PosVertex[] //{ // new PosVertex(-1,-1), // new PosVertex(1,-1), // new PosVertex(-1,1), // new PosVertex(1,1) //}; //vb.SetData(verts); }