How to create pbr textures (gltf) from given images using C++

Hello,
I want to create a C++ program which creates PBR textures (gltf format) if given some image file (jpg or raw or png etc) and vertex information

I believe this is possible

Can I find such github sources ?

Thank you