-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render themes: SVG resources #60
Comments
I have under testing a working implementation with the proper infrastructure.
So wait a bit until I push all the commits. 😄 |
Very good news! 👍 |
thats not god! The Textureatlas has one Texture with all Symbols! If you change this to single Texture you need many performance for swap Textures with render any Symbol! And Texture swaping cost performance!
Yes I wait and hope your implementation on Android and Desktop is implementable at iOS |
Nevertheless a library should be versatile. BTW how do you think SVG symbols should be stored in a render theme? |
I think the best way is to create the Textureatlas at runtime. Wen a Theme is loaded, so we created all the symbols into Textureatlas! Maybe we can Buffer this Textureatlas on Feilesystem for the next load. |
Note that now only symbols are read from texture atlas. Runtime creation is more complicated (needs a writer too) and I'd leave it as a future step. |
no, is not complicated! `
` this code is tested! |
Hmm we'd need to include a libGDX dependency on core module for that.. |
Yes, but I think that Libgdx is the better way here. |
I created #63 for SVG texture atlas, to see what can be done. |
I pushed the needed SVG infrastructure, along with implementations:
|
@Longri you can proceed for the iOS in e.g. see the |
add svg constructor for Bitmap
Implement SVG loading for theme symbol
I will do that with PR in the next days.
Tests with iOS framework are successful
The text was updated successfully, but these errors were encountered: