SKGLLayer Class

Definition

A CoreAnimation OpenGL layer that can be drawn on using SkiaSharp drawing commands.

public class SKGLLayer : CoreAnimation.CAOpenGLLayer
Inheritance
SKGLLayer

Constructors

SKGLLayer()

Default constructor that initializes a new instance of SKGLLayer.

Properties

CanvasSize

Gets the current canvas size.

GRContext

Gets the current GPU context.

SKDelegate
Obsolete.

Gets or sets the layer's delegate object.

Methods

DrawInCGLContext(CGLContext, CGLPixelFormat, Double, CVTimeStamp)

Draws the OpenGL content for the specified time.

DrawInSurface(SKSurface, GRBackendRenderTargetDesc)
Obsolete.

Implement this to draw on the canvas.

OnPaintSurface(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

Release(CGLContext)

Releases the specified rendering context.

Events

PaintSurface

Occurs when the the canvas needs to be redrawn.

Applies to