Bubbers / Bubba-3D

3D game engine using OpenGL.
https://bubbers.github.io/Bubba-3D/
GNU Lesser General Public License v3.0
9 stars 1 forks source link

Optimize glyph placements in glyph texture #50

Open SiXoS opened 8 years ago

SiXoS commented 8 years ago

All font glyphs are saved in a texture. Currently they are simply placed right after each other. This means that if there are glyphs of different sizes, there will be a lot of unused space in the texture. The placement of the glyphs should be optimized to minimize the amount of unused space.