Table of Contents

Class EglContext

Namespace
Avalonia.OpenGL.Egl
Assembly
Avalonia.OpenGL.dll
public class EglContext : IGlContext, IPlatformGraphicsContext, IDisposable, IOptionalFeatureProvider
Inheritance
EglContext
Implements
Inherited Members

Properties

CanCreateSharedContext

public bool CanCreateSharedContext { get; }

Property Value

bool

Context

public nint Context { get; }

Property Value

nint

Display

public EglDisplay Display { get; }

Property Value

EglDisplay

EglInterface

public EglInterface EglInterface { get; }

Property Value

EglInterface

GlInterface

public GlInterface GlInterface { get; }

Property Value

GlInterface

IsCurrent

public bool IsCurrent { get; }

Property Value

bool

IsLost

public bool IsLost { get; }

Property Value

bool

OffscreenSurface

public EglSurface? OffscreenSurface { get; }

Property Value

EglSurface

SampleCount

public int SampleCount { get; }

Property Value

int

StencilSize

public int StencilSize { get; }

Property Value

int

Version

public GlVersion Version { get; }

Property Value

GlVersion

Methods

CreateSharedContext(IEnumerable<GlVersion>?)

public IGlContext CreateSharedContext(IEnumerable<GlVersion>? preferredVersions = null)

Parameters

preferredVersions IEnumerable<GlVersion>

Returns

IGlContext

Dispose()

public void Dispose()

EnsureCurrent()

public IDisposable EnsureCurrent()

Returns

IDisposable

EnsureLocked()

public IDisposable EnsureLocked()

Returns

IDisposable

IsSharedWith(IGlContext)

public bool IsSharedWith(IGlContext context)

Parameters

context IGlContext

Returns

bool

MakeCurrent()

public IDisposable MakeCurrent()

Returns

IDisposable

MakeCurrent(EglSurface?)

public IDisposable MakeCurrent(EglSurface? surface)

Parameters

surface EglSurface

Returns

IDisposable

NotifyContextLost()

public void NotifyContextLost()

TryGetFeature(Type)

Queries for an optional feature.

public object? TryGetFeature(Type featureType)

Parameters

featureType Type

Feature type.

Returns

object