GLTextureView.IRenderer Interface

Definition

A generic renderer interface.

C#
public interface GLTextureView.IRenderer

Remarks

The renderer is responsible for making OpenGL calls to render a frame.

Typically, GLTextureView clients create their own classes that implement this interface, and then call GLTextureView.SetRenderer to register the renderer with the GLTextureView.

Methods

OnDrawFrame(IGL10)

Called to draw the current frame.

OnSurfaceChanged(IGL10, Int32, Int32)

Called when the surface changed size.

OnSurfaceCreated(IGL10, EGLConfig)

Called when the surface is created.

OnSurfaceDestroyed()

Called when the surface has been lost.

Applies to

Product Versions
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x