How do I use OpenCV 4.5 materials as OpenGL textures using standard OpenGL

OpenCV has it’s own implementation of OpenGL and this is not what I have been taught in my courses. I would like some kind of function that will do the a type of conversion for me.