Method

CoglPipelineset_layer_point_sprite_coords_enabled

Declaration [src]

gboolean
cogl_pipeline_set_layer_point_sprite_coords_enabled (
  CoglPipeline* pipeline,
  int layer_index,
  gboolean enable,
  GError** error
)

Description [src]

When rendering points, if enable is TRUE then the texture coordinates for this layer will be replaced with coordinates that vary from 0.0 to 1.0 across the primitive. The top left of the point will have the coordinates 0.0,0.0 and the bottom right will have 1.0,1.0. If enable is FALSE then the coordinates will be fixed for the entire point.

Stability:Unstable
Available since:2.0

Parameters

layer_index int
 

The layer number to change.

enable gboolean
 

Whether to enable point sprite coord generation.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the function succeeds, FALSE otherwise.