GLTexture#
Implemented Interfaces: Paintable, Icon, LoadableIcon
A GdkTexture representing a GL texture object.
Constructors#
- class GLTexture
 - classmethod new(context: GLContext, id: int, width: int, height: int, destroy: Callable[[Any], None], data: Any = None) GLTexture#
 Creates a new texture for an existing GL texture.
Note that the GL texture must not be modified until
destroyis called, which will happen when the GdkTexture object is finalized, or due to an explicit call ofrelease.Deprecated since version 4.12:
GLTextureBuildersupersedes this functionand provides extended functionality for creating GL textures.
- Parameters:
 context – a
GdkGLContextid – the ID of a texture that was created with
contextwidth – the nominal width of the texture
height – the nominal height of the texture
destroy – a destroy notify that will be called when the GL resources are released
data – data that gets passed to
destroy