memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.06k stars 767 forks source link

nanovg to with a 3*3 matrix #595

Closed LightSun closed 3 years ago

LightSun commented 3 years ago

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

memononen commented 3 years ago

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

LightSun commented 3 years ago

ok, thanks

Mikko Mononen notifications@github.com 於 2020年12月4日 週五 下午2:03寫道:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/memononen/nanovg/issues/595#issuecomment-738585251, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUGAA5RRMKKB4MMJ76MW3TSTB3R7ANCNFSM4UMZTO2A .