Class GLContext
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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
major
intTransfer ownership: Full Nullable: True
minor
intTransfer ownership: Full Nullable: True
GetSharedContext(IntPtr)
Calls native method gdk_gl_context_get_shared_context.
public static extern IntPtr GetSharedContext(IntPtr context)
Parameters
context
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
major
intTransfer ownership: Full Nullable: False
minor
intTransfer ownership: Full Nullable: False
IsLegacy(IntPtr)
Calls native method gdk_gl_context_is_legacy.
public static extern bool IsLegacy(IntPtr context)
Parameters
context
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
other
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
apis
GLAPITransfer 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
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
compatible
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
major
intTransfer ownership: None Nullable: False
minor
intTransfer 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)