copy
Description:
Creates a new material with the configuration copied from the source material.
Note:
Use cogl_pipeline_copy
instead
We would strongly advise developers to always aim to use copy instead of Material whenever there will be any similarity between two materials. Copying a material helps Cogl keep track of a materials ancestry which we may use to help minimize GPU state changes.
Parameters:
this |
a |
Returns:
a pointer to the newly allocated |