Cogl.Pipeline.prototype.set_cull_face_mode
function set_cull_face_mode(cull_face_mode: Cogl.PipelineCullFaceMode): void {
// Gjs wrapper for cogl_pipeline_set_cull_face_mode()
}
Sets which faces will be culled when drawing. Face culling can be used to increase efficiency by avoiding drawing faces that would get overridden. For example, if a model has gaps so that it is impossible to see the inside then faces which are facing away from the screen will never be seen so there is no point in drawing them. This can be acheived by setting the cull face mode to Cogl.PipelineCullFaceMode.back.
Face culling relies on the primitives being drawn with a specific order to represent which faces are facing inside and outside the model. This order can be specified by calling Cogl.Pipeline.prototype.set_front_face_winding.
Status: Unstable
Since 2.0
- cull_face_mode
The new mode to set