build


Description:

public Texture build (DestroyNotify? destroy, void* data)

Builds a new `GdkTexture` with the values set up in the builder.

The `destroy` function gets called when the returned texture gets released; either when the texture is finalized or by an explicit call to [ method@Gdk.GLTexture.release]. It should release all GL resources associated with the texture, such as the [property@Gdk.GLTextureBuilder:id] and the [property@Gdk.GLTextureBuilder:sync].

Note that it is a programming error to call this function if any mandatory property has not been set.

It is possible to call this function multiple times to create multiple textures, possibly with changing properties in between.

Parameters:

this

a `GdkGLTextureBuilder`

destroy

destroy function to be called when the texture is released

data

user data to pass to the destroy function

Returns:

a newly built `GdkTexture`