Cogl.Renderer.prototype.add_constraint
function add_constraint(constraint: Cogl.RendererConstraint): void {
// Gjs wrapper for cogl_renderer_add_constraint()
}
This adds a renderer selection constraint.
Applications should ideally minimize how many of these constraints they depend on to ensure maximum portability.
Since 1.10
- constraint
A Cogl.RendererConstraint to add