Class: Gdk::GLTexture
Instance Method Summary collapse
-
#initialize(context, id, width, height, destroy, data) ⇒ Gdk::GLTexture
constructor
Creates a new texture for an existing GL texture.
-
#release ⇒ nil
Releases the GL resources held by a
GdkGLTexture.
Methods inherited from Texture
#download, #format, #height, #height=, #save_to_png, #save_to_png_bytes, #save_to_tiff, #save_to_tiff_bytes, #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].
Instance Method Details
#release ⇒ nil
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.