memononen/nanovg

nanovg to with a 3*3 matrix

LightSun opened this issue · 2 comments

Hello you are writing a good project . I am Interested in it. Can you help me?
There is a matrix , How can i use it with nanovg ?

 | scaleX  skewX transX |
 |  skewY scaleY transY |
 |  pers0  pers1  pers2 |

ps:
scaleX: horizontal scale factor
scaleY: vertical scale factor
skewX: horizontal skew factor
skewY: vertical skew factor
transX: horizontal translation
transY : vertical translation
pers0: input x-axis perspective factor
pers1: input y-axis perspective factor
pers2: perspective scale factor

Take a look at: https://github.com/memononen/nanovg/blob/master/src/nanovg.h#L300
NanoVG does not support perspective transform, though.