Table of Contents

Class GLContext

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class GLContext
Inheritance
GLContext
Inherited Members

Methods

ClearCurrent()

Calls native function gdk_gl_context_clear_current.

public static extern void ClearCurrent()

GetAllowedApis(IntPtr)

Calls native method gdk_gl_context_get_allowed_apis. Version: 4.6

[Version("4.6")]
public static extern GLAPI GetAllowedApis(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

GLAPI

Transfer ownership: None Nullable: False

GetApi(IntPtr)

Calls native method gdk_gl_context_get_api. Version: 4.6

[Version("4.6")]
public static extern GLAPI GetApi(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

GLAPI

Transfer ownership: None Nullable: False

GetCurrent()

Calls native function gdk_gl_context_get_current.

public static extern IntPtr GetCurrent()

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDebugEnabled(IntPtr)

Calls native method gdk_gl_context_get_debug_enabled.

public static extern bool GetDebugEnabled(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetDisplay(IntPtr)

Calls native method gdk_gl_context_get_display.

public static extern IntPtr GetDisplay(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetForwardCompatible(IntPtr)

Calls native method gdk_gl_context_get_forward_compatible.

public static extern bool GetForwardCompatible(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_gl_context_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetRequiredVersion(IntPtr, out int, out int)

Calls native method gdk_gl_context_get_required_version.

public static extern void GetRequiredVersion(IntPtr context, out int major, out int minor)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

major int

Transfer ownership: Full Nullable: True

minor int

Transfer ownership: Full Nullable: True

GetSharedContext(IntPtr)

Calls native method gdk_gl_context_get_shared_context.

public static extern IntPtr GetSharedContext(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSurface(IntPtr)

Calls native method gdk_gl_context_get_surface.

public static extern IntPtr GetSurface(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetUseEs(IntPtr)

Calls native method gdk_gl_context_get_use_es.

public static extern bool GetUseEs(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetVersion(IntPtr, out int, out int)

Calls native method gdk_gl_context_get_version.

public static extern void GetVersion(IntPtr context, out int major, out int minor)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

major int

Transfer ownership: Full Nullable: False

minor int

Transfer ownership: Full Nullable: False

IsLegacy(IntPtr)

Calls native method gdk_gl_context_is_legacy.

public static extern bool IsLegacy(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsShared(IntPtr, IntPtr)

Calls native method gdk_gl_context_is_shared. Version: 4.4

[Version("4.4")]
public static extern bool IsShared(IntPtr self, IntPtr other)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

other IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

MakeCurrent(IntPtr)

Calls native method gdk_gl_context_make_current.

public static extern void MakeCurrent(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Realize(IntPtr, out ErrorOwnedHandle)

Calls native method gdk_gl_context_realize.

public static extern bool Realize(IntPtr context, out ErrorOwnedHandle error)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAllowedApis(IntPtr, GLAPI)

Calls native method gdk_gl_context_set_allowed_apis. Version: 4.6

[Version("4.6")]
public static extern void SetAllowedApis(IntPtr self, GLAPI apis)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

apis GLAPI

Transfer ownership: None Nullable: False

SetDebugEnabled(IntPtr, bool)

Calls native method gdk_gl_context_set_debug_enabled.

public static extern void SetDebugEnabled(IntPtr context, bool enabled)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

SetForwardCompatible(IntPtr, bool)

Calls native method gdk_gl_context_set_forward_compatible.

public static extern void SetForwardCompatible(IntPtr context, bool compatible)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

compatible bool

Transfer ownership: None Nullable: False

SetRequiredVersion(IntPtr, int, int)

Calls native method gdk_gl_context_set_required_version.

public static extern void SetRequiredVersion(IntPtr context, int major, int minor)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

major int

Transfer ownership: None Nullable: False

minor int

Transfer ownership: None Nullable: False

SetUseEs(IntPtr, int)

Calls native method gdk_gl_context_set_use_es.

public static extern void SetUseEs(IntPtr context, int useEs)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

useEs int

Transfer ownership: None Nullable: False