-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Allow default, min, max atlas size to be specified #7
Comments
This should also include limitations based on the System. You can get these lower and higher limitations from WGPU. You do not want to allow sizes that are below or above the systems sizes max/min. Generally since it is not super important end user side it would be best to preset this to the max texture size that the System would support. As you will need all the space you can get for Glyphs. Unicode along without storing different sizes of glyph's can kill the texture pretty fast. |
I have played around with dynamically growing the texture atlas. There is two ways to do this:
If you can tell me, which approach would be preferred, I am happy to drop by a PR. |
I find its generally better to have a Texture array for each of the textures starting out at their max size of what is supported by hardware. Then using guillotiere to tell me if we need another layer or not. In my own project this is how i do it as this avoids resizing and allows dynamically growing within needed space. Also prevents you from over drafting the texture sizes on devices that don't support it. |
A growable atlas is being implemented in #34 |
No description provided.
The text was updated successfully, but these errors were encountered: