protected virtual void OnPaintSurface(SKPaintSurfaceEventArgs e) { // invoke the event PaintSurface?.Invoke(this, e); p8SkiaLayout.OnCanvasViewPaintSurface(this, e); }
protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); Title = $"(Vsync: {VSync}) FPS: {1f / e.Time:0}"; var props = new SKSurfaceProperties(SKSurfacePropsFlags.None, SKPixelGeometry.BgrHorizontal); using (var surface = SKSurface.Create(_context, _renderTarget, SKColorType.Bgra8888, props)) { if (surface != null) { Debug.Assert(surface != null); Debug.Assert(surface.Handle != IntPtr.Zero); var canvas = surface.Canvas; canvas.Flush(); var info = this._renderTarget; PaintSurface?.Invoke(this, new SKPaintGLSurfaceEventArgs(surface, _renderTarget)); canvas.Flush(); } else { } } this._context.Flush(); SwapBuffers(); }
public virtual void DrawInSurface(SKSurface surface, GRBackendRenderTargetDesc renderTarget) { if (PaintSurface != null) { PaintSurface.Invoke(this, new SKPaintGLSurfaceEventArgs(surface, renderTarget)); } }
protected virtual void OnPaintSurface(SKPaintGLSurfaceEventArgs e) { if (PaintSurface != null) { PaintSurface.Invoke(this, e); } }
protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); Title = $"(Vsync: {VSync}) FPS: {1f / e.Time:0}"; this.renderTarget.Width = this.Width; this.renderTarget.Height = this.Height; var props = new SKSurfaceProps { Flags = SKSurfacePropsFlags.None, PixelGeometry = SKPixelGeometry.RgbHorizontal }; using (var surface = SKSurface.Create(this.context, this.renderTarget)) { Debug.Assert(surface != null); Debug.Assert(surface.Handle != IntPtr.Zero); var canvas = surface.Canvas; canvas.Flush(); var info = this.renderTarget; PaintSurface?.Invoke(this, new SKPaintGLSurfaceEventArgs(surface, renderTarget)); canvas.Flush(); } this.context.Flush(); SwapBuffers(); }
protected virtual void OnPaintSurface(SKPaintGLSurfaceEventArgs e) { PaintSurface?.Invoke(this, e); }
protected virtual void OnPaintSurface(SKPaintSurfaceEventArgs e) { // invoke the event PaintSurface?.Invoke(this, e); }
public virtual void DrawInSurface(SKSurface surface, SKImageInfo info) { PaintSurface?.Invoke(this, new SKPaintSurfaceEventArgs(surface, info)); }
protected virtual void OnDraw(SKSurface surface, SKImageInfo info) { PaintSurface?.Invoke(this, new SKPaintSurfaceEventArgs(surface, info)); }
protected virtual void OnDrawFrame(SKPaintSurfaceEventArgs e) { PaintSurface?.Invoke(this, e); }
protected void SendPaintSurface(SKPaintSurfaceEventArgs e) { PaintSurface?.Invoke(this, e); }
public void OnDrawFrame(SKSurface surface, GRBackendRenderTargetDesc renderTarget) { PaintSurface?.Invoke(surface, renderTarget); }
public override void Draw(Canvas canvas) { base.Draw(canvas); PaintSurface?.Invoke(this, canvas); }
protected virtual void OnDrawFrame(SKSurface surface, GRBackendRenderTargetDesc renderTarget) { PaintSurface?.Invoke(this, new SKPaintGLSurfaceEventArgs(surface, renderTarget)); }