It’s pretty old but most of the code is still going to apply. Go up to the main part of the repo to see links to the lessons. Apparently, the guy who created them all passed away but I believe there are lots of tutorials available still.
I expect if you clone the repo and do a Grep search on it you might find plenty of example that will do what you want.
I was already looking at the NeHe lessons, as well as the Sulaco OpenGL Projects, and had not found a BMP to Texture example.
Now I have been all the NeHe lessons and Sulaco OpenGL Projects, but all the projects utilised loading textures from file or resource.
With internet searches, I found complicated ways of (almost hacking) a VCL Bitmap to a OpenGL Texture. Yet the complexity and resource requirements meant it was no better than “save to temp file, load the texture” process.