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 [method@Gdk.GLTexture.release].

  1. this(GdkGLTexture* gdkGLTexture, bool ownedRef)
  2. this(GLContext context, uint id, int width, int height, GDestroyNotify destroy, void* data)
    class GLTexture
    this
    (,
    uint id
    ,
    int width
    ,
    int height
    ,
    GDestroyNotify destroy
    ,
    void* data
    )

Parameters

context GLContext

a GdkGLContext

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 GDestroyNotify

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 GdkTexture

Throws

ConstructionException GTK+ fails to create the object.

Meta