Skip to main content

EglGlPlatformImageSurfaceBase Class

Definition

Assembly:Avalonia.OpenGL
Package:Avalonia

Base class for EGL-backed Avalonia.OpenGL.Surfaces.IGlPlatformSurface implementations that render into an EGLImage. Derived types create a concrete render target bound to a given GL context.

public class EglGlPlatformImageSurfaceBase

Inheritance: object -> EglGlPlatformImageSurfaceBase

Methods

NameDescription
CreateGlRenderTargetCreates a render target for the given GL context.

CreateGlRenderTarget Method

Creates a render target for the given GL context.

public Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderTarget CreateGlRenderTarget(Avalonia.OpenGL.IGlContext context)

Parameters

context Avalonia.OpenGL.IGlContext

The GL context the render target will be used with.

Returns

Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderTarget