GLTexture.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(gdk.glcontext.GLContext context, uint id, int width, int height, glib.types.DestroyNotify destroy, void * data = null)

Creates a new texture for an existing GL texture.

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 [gdk.gltexture.GLTexture.release].

Parameters

contexta [gdk.glcontext.GLContext]
idthe ID of a texture that was created with context
widththe nominal width of the texture
heightthe nominal height of the texture
destroya destroy notify that will be called when the GL resources are released
datadata that gets passed to destroy

Returns

A newly-created

[gdk.texture.Texture]

Deprecated

[gdk.gltexture_builder.GLTextureBuilder] supersedes this function

and provides extended functionality for creating GL textures.