SKGLLayer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |