Cogl.TexturePixmapX11.new

function new(context: Cogl.Context, pixmap: Number(guint32), automatic_updates: Cogl.Bool): Cogl.TexturePixmapX11 {
    // Gjs wrapper for cogl_texture_pixmap_x11_new()
}
  

Creates a texture that contains the contents of pixmap. If automatic_updates is true then Cogl will attempt to listen for damage events on the pixmap and automatically update the texture when it changes.

Since 1.10

context

A Cogl.Context

pixmap

A X11 pixmap ID

automatic_updates

Whether to automatically copy the contents of the pixmap to the texture.

Returns

a new Cogl.TexturePixmapX11 instance