set_per_vertex_point_size


Description:

public Bool set_per_vertex_point_size (Bool enable) throws Error

Sets whether to use a per-vertex point size or to use the value set by set_point_size.

If per-vertex point size is enabled then the point size can be set for an individual point either by drawing with a Attribute with the name ‘cogl_point_size_in’ or by writing to the GLSL builtin ‘cogl_point_size_out’ from a vertex shader snippet.

If per-vertex point size is enabled and this attribute is not used and cogl_point_size_out is not written to then the results are undefined.

Note that enabling this will only work if the cogl_feature_id_per_vertex_point_size feature is available. If this is not available then the function will return false and set a CoglError.

Parameters:

this

a Pipeline pointer

enable

whether to enable per-vertex point size

Returns:

true if the change suceeded or false otherwise