GlTextureBuilder

open class GlTextureBuilder(pointer: <Error class: unknown class><<Error class: unknown class>>)

GdkGLTextureBuilder is a builder used to construct class@Gdk.Texture objects from GL textures.

The operation is quite simple: Create a texture builder, set all the necessary properties - keep in mind that the properties property@Gdk.GLTextureBuilder:context, property@Gdk.GLTextureBuilder:id, property@Gdk.GLTextureBuilder:width, and property@Gdk.GLTextureBuilder:height are mandatory - and then call method@Gdk.GLTextureBuilder.build to create the new texture.

GdkGLTextureBuilder can be used for quick one-shot construction of textures as well as kept around and reused to construct multiple textures.

Skipped during bindings generation

  • parameter destroy: GLib.DestroyNotify

  • method get_update_region: Return type cairo.Region is unsupported

  • parameter region: cairo.Region

  • method update-region: Property has no getter nor setter

Since

4.12

Constructors

Link copied to clipboard
constructor()

Creates a new texture builder.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The color state of the texture.

Link copied to clipboard
open var context: GlContext?

The context owning the texture.

Link copied to clipboard

The format when downloading the texture.

Link copied to clipboard
val gdkGLTextureBuilderPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var hasMipmap: Boolean

If the texture has a mipmap.

Link copied to clipboard
open var height: <Error class: unknown class>

The height of the texture.

Link copied to clipboard
open var id: <Error class: unknown class>

The texture ID to use.

Link copied to clipboard
open var sync: <Error class: unknown class>?

An optional GLSync object.

Link copied to clipboard

The texture property@Gdk.GLTextureBuilder:update-region is an update for.

Link copied to clipboard
open var width: <Error class: unknown class>

The width of the texture.