GLTexture


Description:

[ CCode ( has_construct_function = false , type = "GdkTexture*" ) ]
[ Version ( deprecated = true , deprecated_since = "4.12" ) ]
public GLTexture (GLContext context, uint id, int width, int height, DestroyNotify destroy, void* data)

Warning: GLTexture is deprecated since 4.12.

Creates a new texture for an existing GL texture.

Note:

[class@Gdk.GLTextureBuilder] supersedes this function and provides extended functionality for creating GL textures.

Note that the GL texture must not be modified until destroy is called, which will happen when the GdkTexture object is finalized, or due to an explicit call of [method@Gdk.GLTexture.release].

Parameters:

context

a `GdkGLContext`

id

the ID of a texture that was created with context

width

the nominal width of the texture

height

the nominal height of the texture

destroy

a destroy notify that will be called when the GL resources are released

data

data that gets passed to destroy

Returns:

A newly-created `GdkTexture`