Class GLTexture

All Implemented Interfaces:
PointerInterface

public class GLTexture extends Texture
A GdkTexture representing a GL texture object.

https://docs.gtk.org/gdk4/class.GLTexture.html

  • Constructor Details

    • GLTexture

      public GLTexture(PointerContainer pointer)
    • GLTexture

      public GLTexture(@Nonnull GLContext context, int id, int width, int height, GLTexture.OnDestroyNotify destroy, @Nullable Pointer data)
      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 [method@Gdk.GLTexture.release].
      Parameters:
      context - a `GdkGLContext`
      id - the ID of a texture that was created with @context
      width - 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
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • release

      public void release()
      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.
    • asPaintable

      public Paintable asPaintable()
      Implements interface Paintable. Call this to get access to interface functions.
      Overrides:
      asPaintable in class Texture
      Returns:
      Paintable
    • asIcon

      public Icon asIcon()
      Implements interface Icon. Call this to get access to interface functions.
      Overrides:
      asIcon in class Texture
      Returns:
      Icon
    • asLoadableIcon

      public LoadableIcon asLoadableIcon()
      Implements interface LoadableIcon. Call this to get access to interface functions.
      Overrides:
      asLoadableIcon in class Texture
      Returns:
      LoadableIcon
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()