for tvg::Shape::transform (fixed)
Change-Id: Ibbb867e828a07af90f38ed506894d026004fa53d
TVG_EXPORT Tvg_Result tvg_shape_scale(Tvg_Paint* paint, float factor);
TVG_EXPORT Tvg_Result tvg_shape_rotate(Tvg_Paint* paint, float degree);
TVG_EXPORT Tvg_Result tvg_shape_translate(Tvg_Paint* paint, float x, float y);
+TVG_EXPORT Tvg_Result tvg_shape_transform(Tvg_Paint* paint, const Tvg_Matrix* m);
#ifdef __cplusplus
}
return (Tvg_Result) reinterpret_cast<Shape*>(paint)->translate(x, y);
}
+TVG_EXPORT Tvg_Result tvg_shape_transform(Tvg_Paint* paint, const Tvg_Matrix* m)
+{
+ return (Tvg_Result) reinterpret_cast<Shape*>(paint)->transform(*(reinterpret_cast<const Matrix*>(m)));
+}
+
#ifdef __cplusplus
}
#endif
\ No newline at end of file