GLTexture.this

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.

More...
class GLTexture
this

Parameters

context gdk.glcontext.GLContext
id uint

the ID of a texture that was created with context

width int

the nominal width of the texture

height int

the nominal height of the texture

destroy glib.types.DestroyNotify

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

data void*

data that gets passed to destroy

Return Value

A newly-created gdk.texture.Texture

Detailed Description

Deprecated: gdk.gltexture_builder.GLTextureBuilder supersedes this function and provides extended functionality for creating GL textures.