Cogl.Primitive.prototype.copy

function copy(): Cogl.Primitive {
    // Gjs wrapper for cogl_primitive_copy()
}
  

Makes a copy of an existing Cogl.Primitive. Note that the primitive is a shallow copy which means it will use the same attributes and attribute buffers as the original primitive.

Since 1.10

Returns

the new primitive