GlRenderer

open class GlRenderer(pointer: <Error class: unknown class><<Error class: unknown class>>) : Renderer

A GL based renderer.

See class@Gsk.Renderer.

Since

4.2

Constructors

Link copied to clipboard
constructor()

Creates a new GskRenderer using the new OpenGL renderer.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gskGLRendererPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gskRendererPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val surface: <Error class: unknown class>?

The surface associated with renderer.

Functions

Link copied to clipboard
open fun isRealized(): Boolean

Checks whether the @renderer is realized or not.

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

Creates the resources needed by the @renderer to render the scene graph.

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

Creates the resources needed by the @renderer to render the scene graph.

Link copied to clipboard
open fun renderTexture(root: RenderNode, viewport: <Error class: unknown class>? = null): <Error class: unknown class>

Renders the scene graph, described by a tree of GskRenderNode instances, to a GdkTexture.

Link copied to clipboard
open fun unrealize()

Releases all the resources created by gsk_renderer_realize().