EglPlatformImageSurfaceRenderTargetBase Class
Definition
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
Methods
| Name | Description |
|---|---|
| BeginDraw | No summary available. |
| BeginDrawCore | No summary available. |
| Dispose | Destroys the cached framebuffer and texture, if any. |
BeginDraw Method
public Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession BeginDraw(RenderTargetSceneInfo sceneInfo)
Parameters
sceneInfo RenderTargetSceneInfo
Returns
BeginDrawCore Method
public Avalonia.OpenGL.Surfaces.IGlPlatformSurfaceRenderingSession BeginDrawCore(RenderTargetSceneInfo sceneInfo)
Parameters
sceneInfo RenderTargetSceneInfo
Returns
Dispose Method
Destroys the cached framebuffer and texture, if any.
public void Dispose()
Properties
| Name | Description |
|---|---|
| IsCorrupted | Gets a value indicating whether the underlying GL context has been lost. |
| State | Gets 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; }