Method

CoglPipelineset_depth_state

Declaration [src]

gboolean
cogl_pipeline_set_depth_state (
  CoglPipeline* pipeline,
  const CoglDepthState* state,
  GError** error
)

Description [src]

This commits all the depth state configured in state struct to the given pipeline. The configuration values are copied into the pipeline so there is no requirement to keep the CoglDepthState struct around if you don’t need it any more.

Note: Since some platforms do not support the depth range feature it is possible for this function to fail and report an error.

Stability:Unstable
Available since:2.0

Parameters

state const CoglDepthState*
 

A CoglDepthState struct.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the GPU supports all the given state else FALSE and returns an error.