Cogl.Pipeline.prototype.set_layer_point_sprite_coords_enabled
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.
This function will only work if Cogl.FeatureID.ogl_feature_id_point_sprite is available. If the feature is not available then the function will return false and set @error.
Since 2.0
- layer_index
the layer number to change.
- enable
whether to enable point sprite coord generation.
- Returns
true if the function succeeds, false otherwise.