GLTextureBuilder


Object Hierarchy:

Gdk.GLTextureBuilder Gdk.GLTextureBuilder Gdk.GLTextureBuilder GLib.Object GLib.Object GLib.Object->Gdk.GLTextureBuilder

Description:

[ CCode ( type_id = "gdk_gl_texture_builder_get_type ()" ) ]
[ Version ( since = "4.12" ) ]
public sealed class GLTextureBuilder : Object

`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.


Namespace: Gdk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members: