Class: Gdk::GLTexture

Inherits:
Texture show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Texture

#download, #format, #height, #height=, #save_to_png, #save_to_png_bytes, #save_to_tiff, #save_to_tiff_bytes, try_convert, #width, #width=

Constructor Details

#initialize(context, id, width, height, destroy, data) ⇒ 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 GdkTexture object is finalized, or due to an explicit call of [methodGdk.GLTexture.release].

Parameters:

  • context (Gdk::GLContext)

    a GdkGLContext

  • id (Integer)

    the ID of a texture that was created with context

  • width (Integer)

    the nominal width of the texture

  • height (Integer)

    the nominal height of the texture

  • destroy (GLib::DestroyNotify)

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

  • data (GObject)

    data that gets passed to destroy

Instance Method Details

#releasenil

Releases the GL resources held by a GdkGLTexture.

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

Returns:

  • (nil)