Hey everyone, Im currently trying to write an Text renderer in Rust for my Engine, I mostly tried to follow https://learnopengl.com/In-Practice/Text-Rendering and "convert" the opengl stuff into vulkan. Im loading the Fonts using the Freetype library.
So first i go over all the Characters i want to load and loading them as an Vulkan Image, Using this code:
https://pastebin.com/6s9gTDkT.
when when i want to render the text, I bind my pipeline and push my constants then i iterate over each char i want to draw and create an new vertex buffer is their isn't one for it already, You can find my rendering code here:
https://pastebin.com/z3BTBYxm.
Thats my shader code btw:
https://pastebin.com/DL1m4QR5
So i get no validation errors or something, The Problem is that i just do not see any text, I think that im maybe calculating something wrong in the pushconstants or the vertices. I new to 2D programming and until now always used Vulkan for 3D Programming. So I ask for help 😄
btw: You can find all the code in my ui crate in github:
https://github.com/ventengine/Vent-Engine/tree/master/crates/vent-ui/src
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.