Cogl.Texture.prototype.get_components

function get_components(): Cogl.TextureComponents {
    // Gjs wrapper for cogl_texture_get_components()
}
  

Queries what components the given texture stores internally as set via Cogl.Texture.prototype.set_components.

For textures created by the ‘_with_size’ constructors the default is Cogl.TextureComponents.rgba. The other constructors which take a %CoglBitmap or a data pointer default to the same components as the pixel format of the data.

Since 1.18

Returns