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

Enable the stencil for framebuffers + 50 lines of nightmares #9

Closed Frosty-J closed 2 years ago

Frosty-J commented 2 years ago

This pull request changes up toTextureRegion() a bit.

Known issues:

I'm unsure what the state is in tests because Assertions.assertTrue(lock.await(5, TimeUnit.SECONDS)); and its friends fail. Hopefully all is well. It's not identical to my test code due to a difference in Java versions and I didn't figure out how to do an mvn install on this library's source code.

This pull request is feature creep, considering it was only supposed to be a single-line change. You may just want to copy the line I came here for, with its original name of buffer, into the repository for now, since it's the important fix.

https://github.com/lyze237/gdx-TinyVG/blob/7db63a4998af58c785c9653965dd3d934e830d62/src/main/java/dev/lyze/gdxtinyvg/TinyVGIO.java#L28

lyze237 commented 2 years ago

You should be able to run gradlew publishToMavenLocal to install it to .m2 locally.

lyze237 commented 2 years ago

Thanks for the pull request though, I've run through all test and it looks like all is good. Soo lgtm. :)