GlContextImpl

class GlContextImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : GlContext(source)

The GlContextImpl type represents a native instance of the abstract GlContext class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of GlContext for the provided CPointer.

Properties

Link copied to clipboard
open var allowedApis: Glapi

The allowed APIs.

Link copied to clipboard
open val api: Glapi

The API currently in use.

Link copied to clipboard
open override val display: Display?

The GdkDisplay used to create the GdkDrawContext.

Link copied to clipboard
val gdkDrawContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gdkGlContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

This is deprecated since version 4.4.

Link copied to clipboard
open override val surface: Surface?

The GdkSurface the context is bound to.

Functions

Link copied to clipboard
open fun beginFrame(region: <Error class: unknown class>)

This is deprecated since version 4.16.

Link copied to clipboard
open fun endFrame()

This is deprecated since version 4.16.

Link copied to clipboard

Retrieves whether the context is doing extra validations and runtime checking.

Link copied to clipboard

Retrieves whether the context is forward-compatible.

Link copied to clipboard
open fun getFrameRegion(): <Error class: unknown class>?

This is deprecated since version 4.16.

Link copied to clipboard
open fun getUseEs(): Boolean

Checks whether the @context is using an OpenGL or OpenGL ES profile.

Link copied to clipboard
open fun isInFrame(): Boolean

This is deprecated since version 4.16.

Link copied to clipboard
open fun isLegacy(): Boolean

Whether the GdkGLContext is in legacy mode or not.

Link copied to clipboard
open fun isShared(other: GlContext): Boolean

Checks if the two GL contexts can share resources.

Link copied to clipboard
open fun makeCurrent()

Makes the @context the current one.

Link copied to clipboard
open fun realize(): <Error class: unknown class><Boolean>

Realizes the given GdkGLContext.

Link copied to clipboard
open fun setDebugEnabled(enabled: Boolean)

Sets whether the GdkGLContext should perform extra validations and runtime checking.

Link copied to clipboard
open fun setForwardCompatible(compatible: Boolean)

Sets whether the GdkGLContext should be forward-compatible.

Link copied to clipboard
open fun setRequiredVersion(major: <Error class: unknown class>, minor: <Error class: unknown class>)

Sets the major and minor version of OpenGL to request.

Link copied to clipboard
open fun setUseEs(useEs: <Error class: unknown class>)

Requests that GDK create an OpenGL ES context instead of an OpenGL one.