Cogl.Pipeline.prototype.set_layer_matrix

function set_layer_matrix(layer_index: Number(gint), matrix: Cogl.Matrix): void {
    // Gjs wrapper for cogl_pipeline_set_layer_matrix()
}
  

This function lets you set a matrix that can be used to e.g. translate and rotate a single layer of a pipeline used to fill your geometry.

Since 1.10

layer_index

the index for the layer inside pipeline

matrix

the transformation matrix for the layer