void cogl_path_new (void) { _COGL_GET_CONTEXT (ctx, NO_RETVAL); cogl_object_unref (ctx->current_path); ctx->current_path = cogl2_path_new (); }
void cogl_clip_push_from_path (void) { _COGL_GET_CONTEXT (ctx, NO_RETVAL); cogl_clip_push_from_path_preserve (); cogl_object_unref (ctx->current_path); ctx->current_path = cogl2_path_new (); }