Skip to main content

EglPlatformImageSurfaceRenderTargetBase Class

Definition

Assembly:Avalonia.OpenGL
Package:Avalonia

Base class for EGLImage render targets. Manages a reusable framebuffer/texture pair and binds an EGLImage as the color attachment for each draw.

public class EglPlatformImageSurfaceRenderTargetBase

Inheritance: object -> EglPlatformImageSurfaceRenderTargetBase

Methods

NameDescription
BeginDrawNo summary available.
BeginDrawCoreNo summary available.
DisposeDestroys the cached framebuffer and texture, if any.

BeginDraw Method

public Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession BeginDraw(RenderTargetSceneInfo sceneInfo)

Parameters

sceneInfo RenderTargetSceneInfo

Returns

Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession

BeginDrawCore Method

public Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession BeginDrawCore(RenderTargetSceneInfo sceneInfo)

Parameters

sceneInfo RenderTargetSceneInfo

Returns

Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession

Dispose Method

Destroys the cached framebuffer and texture, if any.

public void Dispose()

Properties

NameDescription
IsCorruptedGets a value indicating whether the underlying GL context has been lost.
StateGets the render target state: Avalonia.Platform.PlatformRenderTargetState.Corrupted when Avalonia.OpenGL.Egl.EglPlatformImageSurfaceRenderTargetBase.IsCorrupted is true, otherwise Avalonia.Platform.PlatformRenderTargetState.Ready.

IsCorrupted Property

Gets a value indicating whether the underlying GL context has been lost.

public bool IsCorrupted { get; set; }

State Property

Gets the render target state: Avalonia.Platform.PlatformRenderTargetState.Corrupted when Avalonia.OpenGL.Egl.EglPlatformImageSurfaceRenderTargetBase.IsCorrupted is true, otherwise Avalonia.Platform.PlatformRenderTargetState.Ready.

public Avalonia.Platform.PlatformRenderTargetState State { get; set; }