Class GLContext
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class GLContext : DrawContext, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
GLContext
- Implements
-
- Inherited Members
-
Constructors
GLContext(params ConstructArgument[])
public GLContext(params ConstructArgument[] constructArguments)
Parameters
constructArguments ConstructArgument[]
GLContext(GLContextHandle)
public GLContext(GLContextHandle handle)
Parameters
handle GLContextHandle
Fields
AllowedApisPropertyDefinition
public static readonly Property<GLAPI, GLContext> AllowedApisPropertyDefinition
Field Value
- Property<GLAPI, GLContext>
ApiPropertyDefinition
public static readonly Property<GLAPI, GLContext> ApiPropertyDefinition
Field Value
- Property<GLAPI, GLContext>
SharedContextPropertyDefinition
public static readonly Property<GLContext?, GLContext> SharedContextPropertyDefinition
Field Value
- Property<GLContext, GLContext>
Properties
AllowedApis
public GLAPI AllowedApis { get; set; }
Property Value
- GLAPI
Api
public GLAPI Api { get; }
Property Value
- GLAPI
SharedContext
public GLContext? SharedContext { get; }
Property Value
- GLContext
Methods
ClearCurrent()
public static void ClearCurrent()
GetAllowedApis()
[Version("4.6")]
public GLAPI GetAllowedApis()
Returns
- GLAPI
GetApi()
[Version("4.6")]
public GLAPI GetApi()
Returns
- GLAPI
GetCurrent()
public static GLContext? GetCurrent()
Returns
- GLContext
GetDebugEnabled()
public bool GetDebugEnabled()
Returns
- bool
GetDisplay()
public Display? GetDisplay()
Returns
- Display
GetForwardCompatible()
public bool GetForwardCompatible()
Returns
- bool
GetGType()
public static Type GetGType()
Returns
- Type
GetRequiredVersion(out int, out int)
public void GetRequiredVersion(out int major, out int minor)
Parameters
major int
minor int
GetSharedContext()
public GLContext? GetSharedContext()
Returns
- GLContext
GetSurface()
public Surface? GetSurface()
Returns
- Surface
GetUseEs()
Returns
- bool
GetVersion(out int, out int)
public void GetVersion(out int major, out int minor)
Parameters
major int
minor int
IsLegacy()
Returns
- bool
IsShared(GLContext)
[Version("4.4")]
public bool IsShared(GLContext other)
Parameters
other GLContext
Returns
- bool
MakeCurrent()
public void MakeCurrent()
Realize()
Returns
- bool
SetAllowedApis(GLAPI)
[Version("4.6")]
public void SetAllowedApis(GLAPI apis)
Parameters
apis GLAPI
SetDebugEnabled(bool)
public void SetDebugEnabled(bool enabled)
Parameters
enabled bool
SetForwardCompatible(bool)
public void SetForwardCompatible(bool compatible)
Parameters
compatible bool
SetRequiredVersion(int, int)
public void SetRequiredVersion(int major, int minor)
Parameters
major int
minor int
SetUseEs(int)
public void SetUseEs(int useEs)
Parameters
useEs int