Skip to main content

EglContext Class

Definition

Assembly:Avalonia.OpenGL
Package:Avalonia
public class EglContext

Inheritance: object -> EglContext

Methods

NameDescription
CreateSharedContextNo summary available.
DisposeNo summary available.
EnsureCurrentNo summary available.
EnsureLockedNo summary available.
IsSharedWithNo summary available.
MakeCurrent (2 overloads)No summary available.
NotifyContextLostNo summary available.
TryGetFeatureNo summary available.

CreateSharedContext Method

public Avalonia.OpenGL.IGlContext CreateSharedContext(System.Collections.Generic.IEnumerable<Avalonia.OpenGL.GlVersion> preferredVersions)

Parameters

preferredVersions System.Collections.Generic.IEnumerable<Avalonia.OpenGL.GlVersion>

Returns

Avalonia.OpenGL.IGlContext

Dispose Method

public void Dispose()

EnsureCurrent Method

public IDisposable EnsureCurrent()

Returns

IDisposable

EnsureLocked Method

public IDisposable EnsureLocked()

Returns

IDisposable

IsSharedWith Method

public bool IsSharedWith(Avalonia.OpenGL.IGlContext context)

Parameters

context Avalonia.OpenGL.IGlContext

Returns

bool

MakeCurrent overloads

MakeCurrent Method

public IDisposable MakeCurrent()
Returns

IDisposable

MakeCurrent Method

public IDisposable MakeCurrent(Avalonia.OpenGL.Egl.EglSurface surface)
Parameters

surface Avalonia.OpenGL.Egl.EglSurface

Returns

IDisposable

NotifyContextLost Method

public void NotifyContextLost()

TryGetFeature Method

public object TryGetFeature(Type featureType)

Parameters

featureType Type

Returns

object

Properties

NameDescription
CanCreateSharedContextNo summary available.
ContextNo summary available.
DisplayNo summary available.
EglInterfaceNo summary available.
GlInterfaceNo summary available.
IsCurrentNo summary available.
IsLostNo summary available.
OffscreenSurfaceNo summary available.
SampleCountNo summary available.
StencilSizeNo summary available.
VersionNo summary available.

CanCreateSharedContext Property

public bool CanCreateSharedContext { get; set; }

Context Property

public IntPtr Context { get; set; }

Display Property

public Avalonia.OpenGL.Egl.EglDisplay Display { get; set; }

EglInterface Property

public Avalonia.OpenGL.Egl.EglInterface EglInterface { get; set; }

GlInterface Property

public Avalonia.OpenGL.GlInterface GlInterface { get; set; }

IsCurrent Property

public bool IsCurrent { get; set; }

IsLost Property

public bool IsLost { get; set; }

OffscreenSurface Property

public Avalonia.OpenGL.Egl.EglSurface OffscreenSurface { get; set; }

SampleCount Property

public int SampleCount { get; set; }

StencilSize Property

public int StencilSize { get; set; }

Version Property

public Avalonia.OpenGL.GlVersion Version { get; set; }