Gdk.GLTexture

g GObject.GInterface GObject.GInterface Gdk.Paintable Gdk.Paintable GObject.GInterface->Gdk.Paintable Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon Gio.LoadableIcon Gio.LoadableIcon GObject.GInterface->Gio.LoadableIcon GObject.Object GObject.Object Gdk.Texture Gdk.Texture GObject.Object->Gdk.Texture Gdk.GLTexture Gdk.GLTexture Gdk.Paintable->Gdk.Texture Gdk.Texture->Gdk.GLTexture Gio.Icon->Gdk.Texture Gio.LoadableIcon->Gdk.Texture

Subclasses:

None

Methods

Inherited:

Gdk.Texture (13), GObject.Object (37), Gdk.Paintable (10), Gio.Icon (6), Gio.LoadableIcon (3)

Structs:

GObject.ObjectClass (5)

class

new (context, id, width, height, destroy, data)

release ()

Virtual Methods

Inherited:

GObject.Object (7), Gdk.Paintable (6), Gio.Icon (4), Gio.LoadableIcon (3)

Properties

Inherited:

Gdk.Texture (2)

Signals

Inherited:

GObject.Object (1), Gdk.Paintable (2)

Fields

Inherited:

GObject.Object (1), Gdk.Paintable (2)

Class Details

class Gdk.GLTexture(**kwargs)
Bases:

Gdk.Texture

Abstract:

No

Structure:

Gdk.GLTextureClass

A Gdk.Texture representing a GL texture object.

classmethod new(context, id, width, height, destroy, data)[source]
Parameters:
  • context (Gdk.GLContext) – a GdkGLContext

  • id (int) – 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.DestroyNotify) – a destroy notify that will be called when the GL resources are released

  • data (object or None) – data that gets passed to destroy

Returns:

A newly-created GdkTexture

Return type:

Gdk.GLTexture

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 Gdk.Texture object is finalized, or due to an explicit call of [method`Gdk`.GLTexture.release].

Deprecated since version 4.12: [class`Gdk`.GLTextureBuilder] supercedes this function and provides extended functionality for creating GL textures.

release()[source]

Releases the GL resources held by a GdkGLTexture.

The texture contents are still available via the [method`Gdk`.Texture.download] function, after this function has been called.