|
|
|
|
|
by krapp
124 days ago
|
|
I think I've been successfully nerd sniped. It might be preferable to create a font atlas and just allocate printable ASCII characters as a spritesheet (a single SDL_Texture* reference and an array of rects.) Rather than allocating a texture for each string, you just iterate the string and blit the characters, no new allocations necessary. If you need something more complex, with kerning and the like, the current version of SDL_TTF can create font atlases for various backends. |
|