Cogl.Texture.prototype.get_gl_texture

function get_gl_texture(): [return_value: Cogl.Bool, out_gl_handle: Number(guint), out_gl_target: Number(guint)] {
    // Gjs wrapper for cogl_texture_get_gl_texture()
}
  

Queries the GL handles for a GPU side texture through its Cogl.Texture.

If the texture is spliced the data for the first sub texture will be queried.

return_value

true if the handle was successfully retrieved, false if the handle was invalid

out_gl_handle

pointer to return location for the textures GL handle, or null.

out_gl_target

pointer to return location for the GL target type, or null.