set_cull_face_mode


Description:

public void set_cull_face_mode (PipelineCullFaceMode 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_pipeline_cull_face_mode_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 set_front_face_winding.

Status: Unstable

Parameters:

this

A Pipeline

cull_face_mode

The new mode to set