set_layer_point_sprite_coords_enabled
Description:
public static bool set_layer_point_sprite_coords_enabled (Material material, int layer_index, bool enable) throws Error
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.
Note:
Use cogl_pipeline_set_layer_point_sprite_coords_enabled
instead
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 POINT_SPRITE is available. If the
feature is not available then the function will return false
and set error
.
Parameters:
material |
a VertexBufferIndices to a material. |
layer_index |
the layer number to change. |
enable |
whether to enable point sprite coord generation. |
Returns:
|