Edit

SKGLLayer Class

Definition

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

public class SKGLLayer : CoreAnimation.CAOpenGLLayer
Inheritance
SKGLLayer

Constructors

Name Description
SKGLLayer()

Initializes a new instance of the SKGLLayer class.

Properties

Name Description
CanvasSize

Gets the current canvas size.

GRContext

Gets the current GPU context.

Methods

Name Description
DrawInCGLContext(CGLContext, CGLPixelFormat, Double, CVTimeStamp)

Draws the OpenGL content for the specified time.

OnPaintSurface(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

Release(CGLContext)

Releases the specified rendering context.

Events

Name Description
PaintSurface

Occurs when the canvas needs to be redrawn.

Applies to