Gdk.GLTexture¶
- Subclasses:
None
Methods¶
- Inherited:
Gdk.Texture (13), GObject.Object (37), Gdk.Paintable (10), Gio.Icon (6), Gio.LoadableIcon (3)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gdk.Paintable (6), Gio.Icon (4), Gio.LoadableIcon (3)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.GLTexture(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gdk.Texture
representing a GL texture object.- classmethod new(context, id, width, height, destroy, data)[source]¶
- Parameters:
context (
Gdk.GLContext
) – aGdkGLContext
id (
int
) – the ID of a texture that was created with contextwidth (
int
) – the nominal width of the textureheight (
int
) – the nominal height of the texturedestroy (
GLib.DestroyNotify
) – a destroy notify that will be called when the GL resources are released
- Returns:
A newly-created
GdkTexture
- Return type:
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.