lyze237 / gdx-TinyVG

TinyVG parser and renderer for libGDX
https://svg-to-tvg-server.fly.dev/
Apache License 2.0
25 stars 3 forks source link

Added compositeTransform to draw() #14

Closed raeleus closed 2 years ago

raeleus commented 2 years ago

Some Scene2D widgets modify the transform matrix to position their children. This complicates the use of TVG as an element of user interfaces because it also uses the transform matrix to position/scale/shear/etc the drawing. By multiplying the transform of the batch by the computed transform, you will have a composited matrix that results in the correct result.