Skip to main content

EglInterface Class

Definition​

Assembly:Avalonia.OpenGL
Package:Avalonia
public class EglInterface

Inheritance: object -> EglInterface

Constructors​

NameDescription
EglInterface (3 overloads)No summary available.

EglInterface overloads​

EglInterface Constructor​

public EglInterface()

EglInterface Constructor​

public EglInterface(Func<string, IntPtr> getProcAddress)
Parameters​

getProcAddress Func<string, IntPtr>

EglInterface Constructor​

public EglInterface(string library)
Parameters​

library string

Methods​

NameDescription
BindApiNo summary available.
BindTexImageNo summary available.
ChooseConfigNo summary available.
ChooseConfigsNo summary available.
CreateContextNo summary available.
CreateImageKHRNo summary available.
CreatePbufferFromClientBufferNo summary available.
CreatePbufferFromClientBufferPtrNo summary available.
CreatePBufferSurfaceNo summary available.
CreateWindowSurfaceNo summary available.
DestroyContextNo summary available.
DestroyImageKHRNo summary available.
DestroySurfaceNo summary available.
GetConfigAttribNo summary available.
GetCurrentContextNo summary available.
GetCurrentDisplayNo summary available.
GetCurrentSurfaceNo summary available.
GetDisplayNo summary available.
GetErrorNo summary available.
GetPlatformDisplayExtNo summary available.
GetProcAddressNo summary available.
InitializeNo summary available.
MakeCurrentNo summary available.
QueryApiNo summary available.
QueryDeviceAttribExtNo summary available.
QueryDisplayAttribExtNo summary available.
QueryDmaBufFormatsEXTNo summary available.
QueryDmaBufModifiersEXTNo summary available.
QueryStringNo summary available.
QueryStringNativeNo summary available.
SwapBuffersNo summary available.
SwapIntervalNo summary available.
TerminateNo summary available.
WaitClientNo summary available.
WaitGLNo summary available.
WaitNativeNo summary available.

BindApi Method​

public bool BindApi(int api)

Parameters​

api int

Returns​

bool

BindTexImage Method​

public int BindTexImage(IntPtr display, IntPtr surface, int buffer)

Parameters​

display IntPtr

surface IntPtr

buffer int

Returns​

int

ChooseConfig Method​

public bool ChooseConfig(IntPtr display, int[] attribs, IntPtr& surfaceConfig, int numConfigs, int& choosenConfig)

Parameters​

display IntPtr

attribs int[]

surfaceConfig IntPtr&

numConfigs int

choosenConfig int&

Returns​

bool

ChooseConfigs Method​

public bool ChooseConfigs(IntPtr display, int[] attribs, IntPtr[] configs, int configSize, int& numConfigs)

Parameters​

display IntPtr

attribs int[]

configs IntPtr[]

configSize int

numConfigs int&

Returns​

bool

CreateContext Method​

public IntPtr CreateContext(IntPtr display, IntPtr config, IntPtr share, int[] attrs)

Parameters​

display IntPtr

config IntPtr

share IntPtr

attrs int[]

Returns​

IntPtr

CreateImageKHR Method​

public IntPtr CreateImageKHR(IntPtr display, IntPtr context, int target, IntPtr clientBuffer, int[] attribs)

Parameters​

display IntPtr

context IntPtr

target int

clientBuffer IntPtr

attribs int[]

Returns​

IntPtr

CreatePbufferFromClientBuffer Method​

public IntPtr CreatePbufferFromClientBuffer(IntPtr display, int buftype, IntPtr buffer, IntPtr config, int[] attrib_list)

Parameters​

display IntPtr

buftype int

buffer IntPtr

config IntPtr

attrib_list int[]

Returns​

IntPtr

CreatePbufferFromClientBufferPtr Method​

public IntPtr CreatePbufferFromClientBufferPtr(IntPtr display, int buftype, IntPtr buffer, IntPtr config, int* attrib_list)

Parameters​

display IntPtr

buftype int

buffer IntPtr

config IntPtr

attrib_list int*

Returns​

IntPtr

CreatePBufferSurface Method​

public IntPtr CreatePBufferSurface(IntPtr display, IntPtr config, int[] attrs)

Parameters​

display IntPtr

config IntPtr

attrs int[]

Returns​

IntPtr

CreateWindowSurface Method​

public IntPtr CreateWindowSurface(IntPtr display, IntPtr config, IntPtr window, int[] attrs)

Parameters​

display IntPtr

config IntPtr

window IntPtr

attrs int[]

Returns​

IntPtr

DestroyContext Method​

public bool DestroyContext(IntPtr display, IntPtr context)

Parameters​

display IntPtr

context IntPtr

Returns​

bool

DestroyImageKHR Method​

public bool DestroyImageKHR(IntPtr display, IntPtr image)

Parameters​

display IntPtr

image IntPtr

Returns​

bool

DestroySurface Method​

public void DestroySurface(IntPtr display, IntPtr surface)

Parameters​

display IntPtr

surface IntPtr

GetConfigAttrib Method​

public bool GetConfigAttrib(IntPtr display, IntPtr config, int attr, int& rv)

Parameters​

display IntPtr

config IntPtr

attr int

rv int&

Returns​

bool

GetCurrentContext Method​

public IntPtr GetCurrentContext()

Returns​

IntPtr

GetCurrentDisplay Method​

public IntPtr GetCurrentDisplay()

Returns​

IntPtr

GetCurrentSurface Method​

public IntPtr GetCurrentSurface(int readDraw)

Parameters​

readDraw int

Returns​

IntPtr

GetDisplay Method​

public IntPtr GetDisplay(IntPtr nativeDisplay)

Parameters​

nativeDisplay IntPtr

Returns​

IntPtr

GetError Method​

public int GetError()

Returns​

int

GetPlatformDisplayExt Method​

public IntPtr GetPlatformDisplayExt(int platform, IntPtr nativeDisplay, int[] attrs)

Parameters​

platform int

nativeDisplay IntPtr

attrs int[]

Returns​

IntPtr

GetProcAddress Method​

public IntPtr GetProcAddress(IntPtr proc)

Parameters​

proc IntPtr

Returns​

IntPtr

Initialize Method​

public bool Initialize(IntPtr display, int& major, int& minor)

Parameters​

display IntPtr

major int&

minor int&

Returns​

bool

MakeCurrent Method​

public bool MakeCurrent(IntPtr display, IntPtr draw, IntPtr read, IntPtr context)

Parameters​

display IntPtr

draw IntPtr

read IntPtr

context IntPtr

Returns​

bool

QueryApi Method​

public int QueryApi()

Returns​

int

QueryDeviceAttribExt Method​

public bool QueryDeviceAttribExt(IntPtr display, int attr, IntPtr& res)

Parameters​

display IntPtr

attr int

res IntPtr&

Returns​

bool

QueryDisplayAttribExt Method​

public bool QueryDisplayAttribExt(IntPtr display, int attr, IntPtr& res)

Parameters​

display IntPtr

attr int

res IntPtr&

Returns​

bool

QueryDmaBufFormatsEXT Method​

public bool QueryDmaBufFormatsEXT(IntPtr display, int maxFormats, int* formats, int& numFormats)

Parameters​

display IntPtr

maxFormats int

formats int*

numFormats int&

Returns​

bool

QueryDmaBufModifiersEXT Method​

public bool QueryDmaBufModifiersEXT(IntPtr display, int format, int maxModifiers, ulong* modifiers, bool* externalOnly, int& numModifiers)

Parameters​

display IntPtr

format int

maxModifiers int

modifiers ulong*

externalOnly bool*

numModifiers int&

Returns​

bool

QueryString Method​

public string QueryString(IntPtr display, int i)

Parameters​

display IntPtr

i int

Returns​

string

QueryStringNative Method​

public IntPtr QueryStringNative(IntPtr display, int i)

Parameters​

display IntPtr

i int

Returns​

IntPtr

SwapBuffers Method​

public void SwapBuffers(IntPtr display, IntPtr surface)

Parameters​

display IntPtr

surface IntPtr

SwapInterval Method​

public bool SwapInterval(IntPtr display, int interval)

Parameters​

display IntPtr

interval int

Returns​

bool

Terminate Method​

public void Terminate(IntPtr display)

Parameters​

display IntPtr

WaitClient Method​

public bool WaitClient()

Returns​

bool

WaitGL Method​

public bool WaitGL()

Returns​

bool

WaitNative Method​

public bool WaitNative(int engine)

Parameters​

engine int

Returns​

bool

Properties​

NameDescription
IsCreateImageKHRAvailableNo summary available.
IsDestroyImageKHRAvailableNo summary available.
IsGetPlatformDisplayExtAvailableNo summary available.
IsQueryDeviceAttribExtAvailableNo summary available.
IsQueryDisplayAttribExtAvailableNo summary available.
IsQueryDmaBufFormatsEXTAvailableNo summary available.
IsQueryDmaBufModifiersEXTAvailableNo summary available.

IsCreateImageKHRAvailable Property​

public bool IsCreateImageKHRAvailable { get; set; }

IsDestroyImageKHRAvailable Property​

public bool IsDestroyImageKHRAvailable { get; set; }

IsGetPlatformDisplayExtAvailable Property​

public bool IsGetPlatformDisplayExtAvailable { get; set; }

IsQueryDeviceAttribExtAvailable Property​

public bool IsQueryDeviceAttribExtAvailable { get; set; }

IsQueryDisplayAttribExtAvailable Property​

public bool IsQueryDisplayAttribExtAvailable { get; set; }

IsQueryDmaBufFormatsEXTAvailable Property​

public bool IsQueryDmaBufFormatsEXTAvailable { get; set; }

IsQueryDmaBufModifiersEXTAvailable Property​

public bool IsQueryDmaBufModifiersEXTAvailable { get; set; }