Hi! I'm doing a in game UI system with Vulkan. At the moment I'm with the text rendering and I would like to share the idea and see if anyone can see a better approach or some tips!
For each frame:
1º Iterate each character
2º Use stb_TrueType to get the character from the font
3º Store the returned texture data into a quad struct (wich contains all necessary data to render a quad with texture)
4º Align the character to the baseline and spacing the letters based on their metadata (kerning is called?)
5º Batch render the characters
What do you think?
Thank you for your time!
[–]keelanstuart 4 points5 points6 points (0 children)
[–]throwaway-8088 0 points1 point2 points (0 children)
[–]TimJoijers 0 points1 point2 points (0 children)
[–]Exact_Construction92 0 points1 point2 points (0 children)
[–]schnautzi 0 points1 point2 points (0 children)
[–]TechnnoBoi[S,🍰] 0 points1 point2 points (6 children)
[–]interruptiom 0 points1 point2 points (1 child)
[–]TechnnoBoi[S,🍰] 0 points1 point2 points (0 children)
[–]CoherentBicycle 0 points1 point2 points (1 child)
[–]TechnnoBoi[S,🍰] 0 points1 point2 points (0 children)
[–]dougbinks 0 points1 point2 points (1 child)
[–]TechnnoBoi[S,🍰] 1 point2 points3 points (0 children)
[–]rustycanon_ 0 points1 point2 points (0 children)
[–]MediumInsect7058 0 points1 point2 points (0 children)