littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
321 stars 12 forks source link

Add ability to pass in existing texture when reading a bitmap #82

Closed LeHaine closed 2 years ago

LeHaine commented 2 years ago

Currently, loading a BitmapFont expects to load a separate texture when parsing the .fnt file. This leads to a dramatic increase of draw calls and texture binds when rendering something simple like a Button in the scene graph due to the button drawables and the button fonts being separate textures.